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
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
22
QT_BEGIN_NAMESPACE
23
24
class
Q_QUICKTEMPLATES2_EXPORT
QQuickDialogButtonBoxPrivate
:
public
QQuickContainerPrivate
25
{
26
public
:
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
65
class
QQuickDialogButtonBoxAttachedPrivate
:
public
QObjectPrivate
66
{
67
Q_DECLARE_PUBLIC(QQuickDialogButtonBoxAttached)
68
69
public
:
70
static
QQuickDialogButtonBoxAttachedPrivate
*
get
(
QQuickDialogButtonBoxAttached
*
q
)
71
{
72
return
q
->
d_func
();
73
}
74
75
void
setButtonBox
(
QQuickDialogButtonBox
*
box
);
76
77
QQuickDialogButtonBox *
buttonBox
=
nullptr
;
78
QPlatformDialogHelper
::
ButtonRole
buttonRole
=
QPlatformDialogHelper
::
InvalidRole
;
79
QPlatformDialogHelper
::
StandardButton
standardButton
=
QPlatformDialogHelper
::
NoButton
;
80
};
81
82
QT_END_NAMESPACE
83
84
#
endif
// QQUICKDIALOGBUTTONBOX_P_P_H
QQuickDialogButtonBoxAttachedPrivate
Definition
qquickdialogbuttonbox_p_p.h:66
QQuickDialogButtonBoxAttachedPrivate::buttonRole
QPlatformDialogHelper::ButtonRole buttonRole
Definition
qquickdialogbuttonbox_p_p.h:78
QQuickDialogButtonBoxAttachedPrivate::standardButton
QPlatformDialogHelper::StandardButton standardButton
Definition
qquickdialogbuttonbox_p_p.h:79
QQuickDialogButtonBoxAttachedPrivate::buttonBox
QQuickDialogButtonBox * buttonBox
Definition
qquickdialogbuttonbox_p_p.h:77
QQuickDialogButtonBoxAttached
Definition
qquickdialogbuttonbox_p.h:124
QQuickDialogButtonBoxPrivate
Definition
qquickdialogbuttonbox_p_p.h:25
QQuickDialogButtonBox
Definition
qquickdialogbuttonbox_p.h:33
QQuickDialogPrivate
Definition
qquickdialog_p_p.h:29
QQuickDialog
Definition
qquickdialog_p.h:30
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
QT_REQUIRE_CONFIG
QT_REQUIRE_CONFIG(animation)
QT_REQUIRE_CONFIG
QT_REQUIRE_CONFIG(quicktemplates2_container)
QColorDialogOptionsForeign
Definition
qquickdialog_p.h:124
QFileDialogOptionsForeign
Definition
qquickdialog_p.h:131
QFontDialogOptionsForeign
Definition
qquickdialog_p.h:138
qtdeclarative
src
quicktemplates
qquickdialogbuttonbox_p_p.h
Generated on
for Qt by
1.18.0