Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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_PRIVATE_EXPORT QQuickDialogButtonBoxPrivate : public QQuickContainerPrivate
24{
25public:
26 Q_DECLARE_PUBLIC(QQuickDialogButtonBox)
27
29 {
30 return box->d_func();
31 }
32
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
62{
63 Q_DECLARE_PUBLIC(QQuickDialogButtonBoxAttached)
64
65public:
67 {
68 return q->d_func();
69 }
70
72
76};
77
79
80#endif // QQUICKDIALOGBUTTONBOX_P_P_H
The QQmlComponent class encapsulates a QML component definition.
void itemImplicitWidthChanged(QQuickItem *item) override
virtual qreal getContentWidth() const
virtual qreal getContentHeight() const
virtual void resizeContent()
void itemImplicitHeightChanged(QQuickItem *item) override
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:64
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:127
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:92
QGraphicsItem * item