37 Q_DECLARE_PUBLIC(QDialog)
42#if QT_CONFIG(pushbutton)
45 orientation(Qt::Horizontal),extension(
nullptr), doShowExtension(
false),
46#if QT_CONFIG(sizegrip)
48 sizeGripEnabled(
false),
50 rescode(0), resetModalityTo(-1), wasModalitySet(
true), eventLoop(
nullptr),
51 nativeDialogInUse(
false), m_platformHelper(
nullptr), m_platformHelperCreated(
false)
55 void setVisible(
bool visible) override;
57 QWindow *transientParentWindow()
const;
58 bool setNativeDialogVisible(
bool visible);
59 QVariant styleHint(QPlatformDialogHelper::StyleHint hint)
const;
61#if QT_CONFIG(pushbutton)
62 QPointer<QPushButton> mainDef;
64 Qt::Orientation orientation;
68#if QT_CONFIG(sizegrip)
74#if QT_CONFIG(pushbutton)
75 void setDefault(QPushButton *);
76 void setMainDefault(QPushButton *);
79 void resetModalitySetByOpen();
85 QPointer<QEventLoop> eventLoop;
87 bool nativeDialogInUse;
88 QPlatformDialogHelper *platformHelper()
const;
89 virtual bool canBeNativeDialog()
const;
91 void close(
int resultCode);
94 virtual int dialogCode()
const {
return rescode; }
97 virtual void initHelper(QPlatformDialogHelper *) {}
98 virtual void helperPrepareShow(QPlatformDialogHelper *) {}
99 virtual void helperDone(QDialog::DialogCode, QPlatformDialogHelper *) {}
101 mutable QPlatformDialogHelper *m_platformHelper;
102 mutable bool m_platformHelperCreated;