Rename Listbox to ListBox, and refactor.
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
#include "EditPatientDialog.h"
|
||||
#include "dialogs/SelectDialog.h"
|
||||
#include "DateSelectDialog.h"
|
||||
#include "components/Listbox.h"
|
||||
#include "components/ListBox.h"
|
||||
|
||||
int queryValue(QSqlTableModel* model, int colID, const QVariant& var)
|
||||
{
|
||||
@@ -54,7 +54,7 @@ EditPatientDialog::EditPatientDialog(QWidget *parent, Qt::WindowFlags f) : GUIFo
|
||||
QLabel* lbl_sex= new QLabel(this);
|
||||
lbl_sex->setText(tr("Gender"));
|
||||
layout->addWidget(lbl_sex);
|
||||
btnSex = new Listbox(this);
|
||||
btnSex = new ListBox(this);
|
||||
btnSex->setText(tr("Female"));
|
||||
btnSex->setProperty("idx",0);
|
||||
btnSex->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
|
||||
@@ -87,7 +87,7 @@ EditPatientDialog::EditPatientDialog(QWidget *parent, Qt::WindowFlags f) : GUIFo
|
||||
lbl_date->setText(tr("Birth Date"));
|
||||
|
||||
layout->addWidget(lbl_date);
|
||||
btnDate = new Listbox(this);
|
||||
btnDate = new ListBox(this);
|
||||
btnDate->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
|
||||
btnDate->setLayoutDirection(Qt::RightToLeft);
|
||||
btnDate->setObjectName("editvalBtn");
|
||||
|
||||
Reference in New Issue
Block a user