Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qquicklabsplatformmessagedialog_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
4#ifndef QQUICKLABSPLATFORMMESSAGEDIALOG_P_H
5#define QQUICKLABSPLATFORMMESSAGEDIALOG_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
19#include <QtQml/qqml.h>
20
22
24{
27 Q_PROPERTY(QString text READ text WRITE setText NOTIFY textChanged FINAL)
30 Q_PROPERTY(QPlatformDialogHelper::StandardButtons buttons READ buttons WRITE setButtons NOTIFY buttonsChanged FINAL)
32
33public:
35
36 QString text() const;
37 void setText(const QString &text);
38
40 void setInformativeText(const QString &text);
41
42 QString detailedText() const;
43 void setDetailedText(const QString &text);
44
45 QPlatformDialogHelper::StandardButtons buttons() const;
46 void setButtons(QPlatformDialogHelper::StandardButtons buttons);
47
53 void clicked(QPlatformDialogHelper::StandardButton button);
54
55 void okClicked();
59 void yesClicked();
61 void noClicked();
73
74protected:
76 void onShow(QPlatformDialogHelper *dialog) override;
77
79 void handleClick(QPlatformDialogHelper::StandardButton button);
80
83};
84
86
87#endif // QQUICKLABSPLATFORMMESSAGEDIALOG_P_H
\inmodule QtCore
Definition qobject.h:103
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:346
The QPlatformDialogHelper class allows for platform-specific customization of dialogs.
void onShow(QPlatformDialogHelper *dialog) override
QPlatformDialogHelper::StandardButtons buttons
void onCreate(QPlatformDialogHelper *dialog) override
void clicked(QPlatformDialogHelper::StandardButton button)
void setButtons(QPlatformDialogHelper::StandardButtons buttons)
\inmodule QtCore
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
QPushButton * button
[2]
Combined button and popup list for selecting options.
#define QML_NAMED_ELEMENT(NAME)
#define QML_EXTENDED_NAMESPACE(EXTENDED_NAMESPACE)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_SLOTS
#define Q_SIGNALS
#define explicit
QFileDialog dialog(this)
[1]