Refactor InputObject(EventFilter and VirtualKeyboard).
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user