New theme
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#include "tabformwidget.h"
|
||||
#include "ui_tabformwidget.h"
|
||||
|
||||
#include <QDateTime>
|
||||
TabFormWidget::TabFormWidget(QWidget *parent) :
|
||||
QWidget(parent),
|
||||
ui(new Ui::TabFormWidget)
|
||||
@@ -8,7 +8,30 @@ TabFormWidget::TabFormWidget(QWidget *parent) :
|
||||
ui->setupUi(this);
|
||||
QPixmap img(":/icons/logo.png");
|
||||
ui->logo->setPixmap(img.scaledToHeight(33,Qt::SmoothTransformation));
|
||||
ui->company->setText(QString("浙江衡玖医疗科技"));
|
||||
ui->company->setText(QString::fromLocal8Bit("<EFBFBD>㽭<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ҽ<EFBFBD>ƿƼ<EFBFBD>"));
|
||||
QLabel* hosp = new QLabel(this);
|
||||
hosp->setText(QString::fromLocal8Bit("<EFBFBD>㽭<EFBFBD><EFBFBD>ѧҽѧԺ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڶ<EFBFBD>ҽԺ "));
|
||||
QLabel* nowDate = new QLabel(this);
|
||||
nowDate->setText(QDateTime::currentDateTime().toString("yyyy-MM-dd hh:mm:ss"));
|
||||
QLabel* linkIcon = new QLabel(this);
|
||||
linkIcon->setPixmap(QPixmap(":/icons/link_g.png").scaledToHeight(20,Qt::SmoothTransformation));
|
||||
QLabel* readyIcon = new QLabel(this);
|
||||
readyIcon->setPixmap(QPixmap(":/icons/ready.png").scaledToHeight(20,Qt::SmoothTransformation));
|
||||
QLabel* lockIcon = new QLabel(this);
|
||||
lockIcon->setPixmap(QPixmap(":/icons/lock.png").scaledToHeight(20,Qt::SmoothTransformation));
|
||||
QHBoxLayout* layout= new QHBoxLayout(ui->statusBarWidget);
|
||||
|
||||
layout->addSpacerItem(new QSpacerItem(10,10,QSizePolicy::Expanding));
|
||||
layout->addWidget(hosp);
|
||||
layout->addWidget(nowDate);
|
||||
QWidget* spacerLine= new QWidget(this);
|
||||
spacerLine->setFixedWidth(2);
|
||||
spacerLine->setObjectName("verSpaceLine");
|
||||
|
||||
layout->addWidget(spacerLine);
|
||||
layout->addWidget(linkIcon);
|
||||
layout->addWidget(readyIcon);
|
||||
layout->addWidget(lockIcon);
|
||||
}
|
||||
|
||||
TabFormWidget::~TabFormWidget()
|
||||
|
||||
Reference in New Issue
Block a user