Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qquickmessagedialog_p.h
Go to the documentation of this file.
1
// Copyright (C) 2021 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
QQUICKMESSAGEDIALOG_P_H
6
#
define
QQUICKMESSAGEDIALOG_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
"qquickabstractdialog_p.h"
20
21
QT_BEGIN_NAMESPACE
22
23
class
Q_QUICKDIALOGS2_EXPORT
QQuickMessageDialog
:
public
QQuickAbstractDialog
24
{
25
Q_OBJECT
26
27
private
:
28
Q_PROPERTY(QString text READ text WRITE setText NOTIFY textChanged FINAL)
29
Q_PROPERTY(QString informativeText READ informativeText WRITE setInformativeText NOTIFY informativeTextChanged FINAL)
30
Q_PROPERTY(QString detailedText READ detailedText WRITE setDetailedText NOTIFY detailedTextChanged FINAL)
31
Q_PROPERTY(QPlatformDialogHelper::StandardButtons buttons READ buttons WRITE setButtons NOTIFY buttonsChanged FINAL)
32
QML_EXTENDED_NAMESPACE(QPlatformDialogHelper)
33
QML_NAMED_ELEMENT(MessageDialog)
34
QML_ADDED_IN_VERSION(6, 3)
35
36
public
:
37
explicit
QQuickMessageDialog(QObject *parent =
nullptr
);
38
39
QString text()
const
;
40
void
setText(
const
QString &text);
41
42
QString informativeText()
const
;
43
void
setInformativeText(
const
QString &text);
44
45
QString detailedText()
const
;
46
void
setDetailedText(
const
QString &text);
47
48
QPlatformDialogHelper::StandardButtons buttons()
const
;
49
void
setButtons(QPlatformDialogHelper::StandardButtons buttons);
50
51
Q_SIGNALS:
52
void
textChanged();
53
void
informativeTextChanged();
54
void
detailedTextChanged();
55
void
buttonsChanged();
56
57
void
buttonClicked(QPlatformDialogHelper::StandardButton button,
58
QPlatformDialogHelper::ButtonRole role);
59
60
private
Q_SLOTS:
61
void
handleClick(QPlatformDialogHelper::StandardButton button,
62
QPlatformDialogHelper::ButtonRole role);
63
64
protected
:
65
void
onCreate(QPlatformDialogHelper *dialog) override;
66
void
onShow(QPlatformDialogHelper *dialog) override;
67
int
dialogCode()
const
override;
68
69
private
:
70
QSharedPointer<QMessageDialogOptions> m_options;
71
QPlatformDialogHelper::ButtonRole m_roleOfLastButtonPressed = QPlatformDialogHelper::NoRole;
72
};
73
74
QT_END_NAMESPACE
75
76
#
endif
// QQUICKMESSAGEDIALOG_P_H
QQuickMessageDialog
Definition
qquickmessagedialog_p.h:24
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtdeclarative
src
quickdialogs
quickdialogs
qquickmessagedialog_p.h
Generated on
for Qt by
1.18.0