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
qquickdialogbuttonbox_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
4#ifndef QQUICKDIALOGBUTTONBOX_P_P_H
5#define QQUICKDIALOGBUTTONBOX_P_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
18#include <QtQuickTemplates2/private/qquickcontainer_p_p.h>
19#include <QtQuickTemplates2/private/qquickdialogbuttonbox_p.h>
20
22
23class Q_QUICKTEMPLATES2_EXPORT QQuickDialogButtonBoxPrivate : public QQuickContainerPrivate
24{
25public:
26 Q_DECLARE_PUBLIC(QQuickDialogButtonBox)
27
29 {
30 return box->d_func();
31 }
32
33 void itemImplicitWidthChanged(QQuickItem *item) override;
34 void itemImplicitHeightChanged(QQuickItem *item) override;
35
36 void resizeContent() override;
37
38 void updateLayout();
39
40 qreal getContentWidth() const override;
41 qreal getContentHeight() const override;
42
43 void handleClick();
44
45 static QString buttonText(QPlatformDialogHelper::StandardButton standardButton);
46
48 void removeStandardButtons();
49
50 void updateLanguage();
51
53
54 Qt::Alignment alignment;
56 QPlatformDialogHelper::StandardButtons standardButtons = QPlatformDialogHelper::NoButton;
58 QQmlComponent *delegate = nullptr;
59};
60
77
79
80#endif // QQUICKDIALOGBUTTONBOX_P_P_H
The QQmlComponent class encapsulates a QML component definition.
QPlatformDialogHelper::ButtonRole buttonRole
QPlatformDialogHelper::StandardButton standardButton
void setButtonBox(QQuickDialogButtonBox *box)
static QQuickDialogButtonBoxAttachedPrivate * get(QQuickDialogButtonBoxAttached *q)
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition qquickitem.h:63
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
QPushButton * button
[2]
Combined button and popup list for selecting options.
static QDBusError::ErrorType get(const char *name)
GLsizei const GLint * box
GLdouble GLdouble GLdouble GLdouble q
Definition qopenglext.h:259
static qreal position(const QQuickItem *item, QQuickAnchors::Anchor anchorLine)
double qreal
Definition qtypes.h:187
QGraphicsItem * item