Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qquickdialog_p_p.h
Go to the documentation of this file.
1// Copyright (C) 2017 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef QQUICKDIALOG_P_P_H
6#define QQUICKDIALOG_P_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtQuickTemplates2/private/qquickdialog_p.h>
20#include <QtQuickTemplates2/private/qquickpopup_p_p.h>
21#include <QtGui/qpa/qplatformdialoghelper.h>
22
24
25class QQuickAbstractButton;
26class QQuickDialogButtonBox;
27
28class Q_QUICKTEMPLATES2_EXPORT QQuickDialogPrivate : public QQuickPopupPrivate
29{
30public:
31 Q_DECLARE_PUBLIC(QQuickDialog)
32
33 static QQuickDialogPrivate *get(QQuickDialog *dialog)
34 {
35 return dialog->d_func();
36 }
37
38 static QPlatformDialogHelper::ButtonRole buttonRole(QQuickAbstractButton *button);
39
40 virtual void handleAccept();
41 virtual void handleReject();
42 virtual void handleClick(QQuickAbstractButton *button);
43
44 Qt::WindowFlags popupWindowType() const override;
45
46 int result = 0;
47 QQuickDialogButtonBox *buttonBox = nullptr;
48 QPlatformDialogHelper::StandardButtons standardButtons = QPlatformDialogHelper::NoButton;
49};
50
51QT_END_NAMESPACE
52
53#endif // QQUICKDIALOG_P_P_H
QT_REQUIRE_CONFIG(quicktemplates2_container)