Ui Adjusting 2
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user