Refactor css file.
This commit is contained in:
@@ -26,15 +26,15 @@ PatientDetailForm::PatientDetailForm(QWidget* parent) :
|
||||
mUI->tbxDob->setDisplayFormat("yyyy/MM/dd");
|
||||
|
||||
mUI->tbxID->setEnabled(false);
|
||||
mUI->tbxID->setObjectName("display_tbx");
|
||||
mUI->tbxID->setObjectName("displayLineEdit");
|
||||
mUI->tbxDob->setEnabled(false);
|
||||
mUI->tbxDob->setObjectName("display_tbx");
|
||||
mUI->tbxDob->setObjectName("displayLineEdit");
|
||||
mUI->tbxName->setEnabled(false);
|
||||
mUI->tbxName->setObjectName("display_tbx");
|
||||
mUI->tbxName->setObjectName("displayLineEdit");
|
||||
mUI->tbxSex->setEnabled(false);
|
||||
mUI->tbxSex->setObjectName("display_tbx");
|
||||
mUI->tbxSex->setObjectName("displayLineEdit");
|
||||
mUI->rtbxComment->setEnabled(false);
|
||||
mUI->rtbxComment->setObjectName("display_tbx");
|
||||
mUI->rtbxComment->setObjectName("displayLineEdit");
|
||||
|
||||
connect(EventCenter::Default(), &EventCenter::ReloadLanguage, this,&PatientDetailForm::reloadLanguage);
|
||||
|
||||
|
||||
@@ -187,7 +187,7 @@ void SelectFormWidget::selectPatient() {
|
||||
}
|
||||
|
||||
void SelectFormWidget::initDetailPanel(QHBoxLayout *contentLayout) {// prepare edit panel
|
||||
mEditPatForm->setObjectName("edit_patient");
|
||||
mEditPatForm->setObjectName("patientDetailWidget");
|
||||
mEditPatForm->hide();
|
||||
contentLayout->addWidget(mEditPatForm);
|
||||
auto* btnShowEdit = new VerticalTextToolButton(this);
|
||||
|
||||
@@ -8,37 +8,54 @@
|
||||
|
||||
#include "forms/tabformwidget.h"
|
||||
#include "EditPatientDialog.h"
|
||||
|
||||
class PatientDetailForm;
|
||||
|
||||
class SlideTableView;
|
||||
|
||||
class QToolButton;
|
||||
class SelectFormWidget: public TabFormWidget {
|
||||
Q_OBJECT
|
||||
|
||||
class SelectFormWidget : public TabFormWidget {
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit SelectFormWidget(QWidget *parent = nullptr);
|
||||
|
||||
~SelectFormWidget() override = default;;
|
||||
|
||||
private:
|
||||
QString selectedPatientUID;
|
||||
void setPatientDetail(const SlideTableView *table, const QSqlTableModel *model, PatientDetailForm *edit_patient) const;
|
||||
QToolButton* mBtnAccount;
|
||||
QToolButton* mBtnWorklist;
|
||||
QToolButton* mBtnAdd;
|
||||
QToolButton* mBtnEdit;
|
||||
QToolButton* mBtnDelete;
|
||||
QToolButton* mBtnSelect;
|
||||
SlideTableView* mPatTable;
|
||||
QSqlTableModel* mModel;
|
||||
PatientDetailForm* mEditPatForm;
|
||||
|
||||
void
|
||||
setPatientDetail(const SlideTableView *table, const QSqlTableModel *model, PatientDetailForm *edit_patient) const;
|
||||
|
||||
QToolButton *mBtnAccount;
|
||||
QToolButton *mBtnWorklist;
|
||||
QToolButton *mBtnAdd;
|
||||
QToolButton *mBtnEdit;
|
||||
QToolButton *mBtnDelete;
|
||||
QToolButton *mBtnSelect;
|
||||
SlideTableView *mPatTable;
|
||||
QSqlTableModel *mModel;
|
||||
PatientDetailForm *mEditPatForm;
|
||||
|
||||
void prepareButtons(bool disableALL);
|
||||
|
||||
void initGeneralButtons(QHBoxLayout *layout);
|
||||
|
||||
void initPatEditButtons(QHBoxLayout *layout);
|
||||
|
||||
void editPatient();
|
||||
|
||||
void delPatient();
|
||||
|
||||
void selectPatient();
|
||||
|
||||
void initDataModel();
|
||||
|
||||
void initDetailPanel(QHBoxLayout *contentLayout);
|
||||
|
||||
void initTableView(QHBoxLayout *contentLayout);
|
||||
|
||||
void reloadLanguage();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user