28#ifdef KDWINUTILS_WITHMFC
44 explicit KDialog(QWidget *pParent =
nullptr, Qt::WindowFlags f = {});
45#ifdef KDWINUTILS_WITHMFC
49 KDialog(CWnd *pParent, Qt::WindowFlags f = {});
79 bool m_initDone =
false;
80 bool m_allowClose =
false;
87 auto parent = T::parent();
89 if (
auto dialog = qobject_cast<KDialog *>(parent))
91 parent = parent->parent();
The KDialog class is used to replace MFC KDialog.
Definition kdialog.h:40
KDialog(CWnd *pParent, Qt::WindowFlags f={})
void showEvent(QShowEvent *event) override
void closeEvent(QCloseEvent *event) override
KDialog(QWidget *pParent=nullptr, Qt::WindowFlags f={})
virtual void OnOK()
Override to perform the OK button action in a modal dialog box.
virtual void OnCancel()
Override to perform the Cancel button or ESC key action.
virtual bool OnInitDialog()
Initializes the dialog internal data.
Definition kdialog.h:56
virtual void OnClose()
Called just before closing the dialog box.
#define KDWINUTILS_EXPORT
Definition kdwinutils_export.h:31
#define KDWINUTILS_BEGIN_NAMESPACE
Definition kdwinutils_global.h:27
#define KDWINUTILS_END_NAMESPACE
Definition kdwinutils_global.h:28