36 Q_DECLARE_PUBLIC(QDialog)
41#if QT_CONFIG(pushbutton)
44 orientation(Qt::Horizontal),extension(
nullptr), doShowExtension(
false),
45#if QT_CONFIG(sizegrip)
47 sizeGripEnabled(
false),
49 rescode(0), resetModalityTo(-1), wasModalitySet(
true), eventLoop(
nullptr),
50 nativeDialogInUse(
false), m_platformHelper(
nullptr), m_platformHelperCreated(
false)
54 void setVisible(
bool visible) override;
56 QWindow *transientParentWindow()
const;
57 bool setNativeDialogVisible(
bool visible);
58 QVariant styleHint(QPlatformDialogHelper::StyleHint hint)
const;
60#if QT_CONFIG(pushbutton)
61 QPointer<QPushButton> mainDef;
63 Qt::Orientation orientation;
67#if QT_CONFIG(sizegrip)
73#if QT_CONFIG(pushbutton)
74 void setDefault(QPushButton *);
75 void setMainDefault(QPushButton *);
78 void resetModalitySetByOpen();
84 QPointer<QEventLoop> eventLoop;
86 bool nativeDialogInUse;
87 QPlatformDialogHelper *platformHelper()
const;
88 virtual bool canBeNativeDialog()
const;
90 void close(
int resultCode);
93 virtual int dialogCode()
const {
return rescode; }
96 virtual void initHelper(QPlatformDialogHelper *) {}
97 virtual void helperPrepareShow(QPlatformDialogHelper *) {}
98 virtual void helperDone(QDialog::DialogCode, QPlatformDialogHelper *) {}
100 mutable QPlatformDialogHelper *m_platformHelper;
101 mutable bool m_platformHelperCreated;