GUIFormBaseDialog, a useful base class for form edit
This commit is contained in:
23
src/GUIFormBaseDialog.h
Normal file
23
src/GUIFormBaseDialog.h
Normal 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
|
||||
Reference in New Issue
Block a user