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
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// Qt-Security score:significant reason:default
4
5#ifndef QQUICKDIALOGBUTTONBOX_P_P_H
6#define QQUICKDIALOGBUTTONBOX_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/qquickcontainer_p_p.h>
20#include <QtQuickTemplates2/private/qquickdialogbuttonbox_p.h>
21
23
24class Q_QUICKTEMPLATES2_EXPORT QQuickDialogButtonBoxPrivate : public QQuickContainerPrivate
25{
26public:
27 Q_DECLARE_PUBLIC(QQuickDialogButtonBox)
28
29 static QQuickDialogButtonBoxPrivate *get(QQuickDialogButtonBox *box)
30 {
31 return box->d_func();
32 }
33
34 void itemImplicitWidthChanged(QQuickItem *item) override;
35 void itemImplicitHeightChanged(QQuickItem *item) override;
36
37 void resizeContent() override;
38
39 void updateLayout();
40 void updateFocus();
41
42 qreal getContentWidth() const override;
43 qreal getContentHeight() const override;
44
45 void handleClick();
46
47 static QString buttonText(QPlatformDialogHelper::StandardButton standardButton);
48
49 QQuickAbstractButton *createStandardButton(QPlatformDialogHelper::StandardButton button);
50 void removeStandardButtons();
51
52 void updateLanguage();
53
54 QPlatformDialogHelper::StandardButton standardButton(QQuickAbstractButton *button) const;
55
56 Qt::Alignment alignment;
57 QQuickDialogButtonBox::Position position = QQuickDialogButtonBox::Footer;
58 QPlatformDialogHelper::StandardButtons standardButtons = QPlatformDialogHelper::NoButton;
59 QPlatformDialogHelper::StandardButton defaultStandardButton = QPlatformDialogHelper::NoButton;
60 QPlatformDialogHelper::ButtonLayout buttonLayout = QPlatformDialogHelper::UnknownLayout;
61 QQuickAbstractButton *defaultButton = nullptr;
62 QQmlComponent *delegate = nullptr;
63};
64
81
82QT_END_NAMESPACE
83
84#endif // QQUICKDIALOGBUTTONBOX_P_P_H
QPlatformDialogHelper::ButtonRole buttonRole
QPlatformDialogHelper::StandardButton standardButton
Combined button and popup list for selecting options.
QT_REQUIRE_CONFIG(animation)
QT_REQUIRE_CONFIG(quicktemplates2_container)