GUIFormBaseDialog, a useful base class for form edit

This commit is contained in:
Krad
2021-11-11 14:10:16 +08:00
parent dcd424c0af
commit d87fb8e429
2 changed files with 64 additions and 0 deletions

23
src/GUIFormBaseDialog.h Normal file
View File

@@ -0,0 +1,23 @@
//
// Created by Krad on 2021/11/10.
//
#ifndef GUI_GUIFORMBASEDIALOG_H
#define GUI_GUIFORMBASEDIALOG_H
#include <QDialog>
class GUIFormBaseDialog: public QDialog {
Q_OBJECT
public:
explicit GUIFormBaseDialog(QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags());
~GUIFormBaseDialog();
protected:
virtual bool updateReferenceData(){
return false;
};
QWidget* formWidget = nullptr;
};
#endif //GUI_GUIFORMBASEDIALOG_H