Ui Adjusting 2
This commit is contained in:
@@ -26,21 +26,20 @@ SelectFormWidget::SelectFormWidget(QWidget *parent) :
|
||||
"QWidget#edit_patient{min-width:300px;max-width:300px;}"
|
||||
// "QTableWidget{border:1px solid #323232}"
|
||||
"QTableWidget{border:none}"
|
||||
"QTableView{alternate-background-color: #595959;}"
|
||||
"QTableView{alternate-background-color: #595959;selection-color:white;selection-background-color:#0078d8}"
|
||||
;
|
||||
this->setStyleSheet(this->styleSheet().append(style));
|
||||
QHBoxLayout* layout =new QHBoxLayout();
|
||||
ui->commandWidget->setLayout(layout);
|
||||
ADD_TOOL_BTN(Account,":/icons/account.png");
|
||||
ADD_TOOL_BTN(Setting,":/icons/setting.png");
|
||||
|
||||
ADD_TOOL_BTN(Worklist,":/icons/setting.png");
|
||||
layout->addSpacerItem(new QSpacerItem(20, 20, QSizePolicy::Expanding));
|
||||
QWidget* spacerLine= new QWidget(this);
|
||||
spacerLine->setFixedWidth(2);
|
||||
spacerLine->setObjectName("verSpaceLine");
|
||||
layout->addWidget(spacerLine);
|
||||
ADD_TOOL_BTN(Add,":/icons/add.png");
|
||||
ADD_TOOL_BTN(Detail,":/icons/details.png");
|
||||
ADD_TOOL_BTN(Edit,":/icons/details.png");
|
||||
ADD_TOOL_BTN(Delete,":/icons/close_circle.png");
|
||||
ADD_TOOL_BTN(Select,":/icons/selected.png");
|
||||
QHBoxLayout* contentLayout =new QHBoxLayout();
|
||||
|
||||
@@ -12,19 +12,6 @@ EditPatientForm::EditPatientForm(QWidget *parent) :
|
||||
QListView* sex_v = new QListView(ui->cb_Sex);
|
||||
sex_v->setItemAlignment(Qt::AlignCenter);
|
||||
ui->cb_Sex->setView(sex_v);
|
||||
QListView* year_v = new QListView();
|
||||
// year_v->setItemAlignment()
|
||||
ui->cb_Year->setView(year_v);
|
||||
for (int i = 1910;i<2022;i++)
|
||||
{
|
||||
ui->cb_Year->addItem(QString("%1").arg(i));
|
||||
}
|
||||
ui->cb_Month->setView(new QListView());
|
||||
ui->cb_Day->setView(new QListView());
|
||||
for (int i = 1;i<31;i++)
|
||||
{
|
||||
ui->cb_Day->addItem(QString("%1").arg(i));
|
||||
}
|
||||
QHBoxLayout* layout =new QHBoxLayout();
|
||||
this->ui->editcmdWidget->setLayout(layout);
|
||||
ADD_TOOL_BTN(Cancel,":/icons/close_circle.png");
|
||||
|
||||
@@ -39,7 +39,11 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="lineEdit"/>
|
||||
<widget class="QLineEdit" name="tbx_ID">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="lbl_Name">
|
||||
@@ -49,7 +53,11 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="lineEdit_2"/>
|
||||
<widget class="QLineEdit" name="tbx_Name">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="lbl_Sex">
|
||||
@@ -60,6 +68,9 @@
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="cb_Sex">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">alignment:center</string>
|
||||
</property>
|
||||
@@ -93,6 +104,16 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QDateEdit" name="tbx_Dob">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="buttonSymbols">
|
||||
<enum>QAbstractSpinBox::NoButtons</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QWidget" name="widget" native="true">
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
@@ -111,90 +132,6 @@
|
||||
<property name="bottomMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QComboBox" name="cb_Year"/>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="lbl_y">
|
||||
<property name="text">
|
||||
<string>/</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="cb_Month">
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>1</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>2</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>3</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>4</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>5</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>6</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>7</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>8</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>9</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>10</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>11</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>12</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="lbl_m">
|
||||
<property name="text">
|
||||
<string>/</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QComboBox" name="cb_Day"/>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -206,7 +143,11 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QTextEdit" name="textEdit"/>
|
||||
<widget class="QTextEdit" name="rtbx_Comment">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QWidget" name="editcmdWidget" native="true"/>
|
||||
|
||||
@@ -7,26 +7,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::fromLocal8Bit("<EFBFBD>㽭<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ҽ<EFBFBD>ƿƼ<EFBFBD>"));
|
||||
ui->lbl_msglogo->setPixmap(QPixmap(":/icons/msg.png").scaledToHeight(26,Qt::SmoothTransformation));
|
||||
// ui->lbl_patlogo->setPixmap(QPixmap(":/icons/patient.png").scaledToHeight(26,Qt::SmoothTransformation));
|
||||
ui->spacer_2->setVisible(false);
|
||||
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));
|
||||
linkIcon->setPixmap(QPixmap(":/icons/link_g.png").scaledToHeight(22,Qt::SmoothTransformation));
|
||||
QLabel* readyIcon = new QLabel(this);
|
||||
readyIcon->setPixmap(QPixmap(":/icons/ready.png").scaledToHeight(20,Qt::SmoothTransformation));
|
||||
readyIcon->setPixmap(QPixmap(":/icons/ready.png").scaledToHeight(22,Qt::SmoothTransformation));
|
||||
QLabel* lockIcon = new QLabel(this);
|
||||
lockIcon->setPixmap(QPixmap(":/icons/lock.png").scaledToHeight(20,Qt::SmoothTransformation));
|
||||
lockIcon->setPixmap(QPixmap(":/icons/lock.png").scaledToHeight(22,Qt::SmoothTransformation));
|
||||
QHBoxLayout* layout= new QHBoxLayout(ui->statusBarWidget);
|
||||
|
||||
layout->setMargin(0);
|
||||
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");
|
||||
spacerLine->setObjectName("spacer_2");
|
||||
|
||||
layout->addWidget(spacerLine);
|
||||
layout->addWidget(linkIcon);
|
||||
|
||||
@@ -64,6 +64,16 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QWidget" name="spacer_1" native="true"/>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="lbl_msglogo">
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="systemMsgBar">
|
||||
<property name="text">
|
||||
@@ -71,6 +81,9 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QWidget" name="spacer_2" native="true"/>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QWidget" name="statusBarWidget" native="true"/>
|
||||
</item>
|
||||
|
||||
Reference in New Issue
Block a user