Refactor InputObject(EventFilter and VirtualKeyboard).

This commit is contained in:
sunwen
2022-06-14 14:03:19 +08:00
parent 589262781d
commit 020b40c55d
36 changed files with 783 additions and 598 deletions

View File

@@ -8,25 +8,27 @@
#include "dialogs/GUIFormBaseDialog.h"
#include "forms/select/editpatientform.h"
class QLineEdit;
class QTextEdit;
class ULineEdit;
class UTextEdit;
class QLabel;
class QToolButton;
class QSqlTableModel;
class EditPatientDialog :public GUIFormBaseDialog{
class EditPatientDialog :public GUIFormBaseDialog {
Q_OBJECT
public:
explicit EditPatientDialog(QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags());
explicit EditPatientDialog(QWidget* parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags());
~EditPatientDialog();
void setModel(QSqlTableModel * m){
model=m;
void setModel(QSqlTableModel* m)
{
model = m;
}
PatientInformation * getPatientInformation(){
PatientInformation* getPatientInformation()
{
return &store;
}
void setPatientInformation(PatientInformation * information);
void setPatientInformation(PatientInformation* information);
void clearPatientInformation();
void storePatientInformation();
@@ -35,11 +37,11 @@ protected:
bool updateReferenceData() override;
private:
QLineEdit* le_id= nullptr;
QLineEdit* le_name = nullptr;
QLineEdit* le_sex = nullptr;
QLineEdit* le_date = nullptr;
QTextEdit* te_comment = nullptr;
ULineEdit* le_id = nullptr;
ULineEdit* le_name = nullptr;
ULineEdit* le_sex = nullptr;
ULineEdit* le_date = nullptr;
UTextEdit* te_comment = nullptr;
QLabel* lbl_error = nullptr;
PatientInformation store;
QString currentPatientUID;