18#include <QtWidgets/private/qtwidgetsglobal_p.h>
19#include "private/qwidget_p.h"
20#include "QtCore/qeventloop.h"
21#include "QtCore/qpointer.h"
22#include "QtWidgets/qdialog.h"
23#if QT_CONFIG(pushbutton)
24#include "QtWidgets/qpushbutton.h"
26#include <qpa/qplatformdialoghelper.h>
47 sizeGripEnabled(
false),
49 rescode(0), resetModalityTo(-1), wasModalitySet(true), eventLoop(
nullptr),
50 nativeDialogInUse(
false), m_platformHelper(
nullptr), m_platformHelperCreated(
false)
56 QWindow *transientParentWindow()
const;
57 bool setNativeDialogVisible(
bool visible);
60#if QT_CONFIG(pushbutton)
67#if QT_CONFIG(sizegrip)
73#if QT_CONFIG(pushbutton)
78 void resetModalitySetByOpen();
88 virtual bool canBeNativeDialog()
const;
90 void close(
int resultCode);
101 mutable bool m_platformHelperCreated;
112 T *
get() const noexcept {
return o; }
114 explicit operator bool() const noexcept {
return !
o.isNull(); }
bool operator!() const noexcept
T * operator->() const noexcept
Q_NODISCARD_CTOR QAutoPointer(T *t) noexcept
virtual void initHelper(QPlatformDialogHelper *)
virtual void helperDone(QDialog::DialogCode, QPlatformDialogHelper *)
QPointer< QEventLoop > eventLoop
virtual void helperPrepareShow(QPlatformDialogHelper *)
Qt::Orientation orientation
virtual int dialogCode() const
The QDialog class is the base class of dialog windows.
DialogCode
The value returned by a modal dialog.
\inmodule QtCore\reentrant
The QSizeGrip class provides a resize handle for resizing top-level windows.
Combined button and popup list for selecting options.
GLenum GLuint GLintptr GLsizeiptr size
[1]
static QT_BEGIN_NAMESPACE QVariant hint(QPlatformIntegration::StyleHint h)
#define QT_CONFIG(feature)
#define QT_REQUIRE_CONFIG(feature)
if(qFloatDistance(a, b)<(1<< 7))
[0]
QFileDialog dialog(this)
[1]