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
qquickpane_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
QQUICKPANE_P_H
6
#
define
QQUICKPANE_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
/
qquickcontrol_p
.
h
>
20
#
include
<
QtQml
/
qqmllist
.
h
>
21
22
QT_BEGIN_NAMESPACE
23
24
class
QQuickPanePrivate;
25
26
class
Q_QUICKTEMPLATES2_EXPORT
QQuickPane
:
public
QQuickControl
27
{
28
Q_OBJECT
29
Q_PROPERTY(qreal contentWidth READ contentWidth WRITE setContentWidth RESET resetContentWidth NOTIFY contentWidthChanged FINAL)
30
Q_PROPERTY(qreal contentHeight READ contentHeight WRITE setContentHeight RESET resetContentHeight NOTIFY contentHeightChanged FINAL)
31
Q_PRIVATE_PROPERTY(QQuickPane::d_func(), QQmlListProperty<QObject> contentData READ contentData FINAL)
32
Q_PRIVATE_PROPERTY(QQuickPane::d_func(), QQmlListProperty<QQuickItem> contentChildren READ contentChildren NOTIFY contentChildrenChanged FINAL)
33
Q_CLASSINFO(
"DefaultProperty"
,
"contentData"
)
34
QML_NAMED_ELEMENT(Pane)
35
QML_ADDED_IN_VERSION(2, 0)
36
37
public
:
38
explicit
QQuickPane(QQuickItem *parent =
nullptr
);
39
~QQuickPane();
40
41
qreal contentWidth()
const
;
42
void
setContentWidth(qreal width);
43
void
resetContentWidth();
44
45
qreal contentHeight()
const
;
46
void
setContentHeight(qreal height);
47
void
resetContentHeight();
48
49
Q_SIGNALS:
50
void
contentWidthChanged();
51
void
contentHeightChanged();
52
void
contentChildrenChanged();
53
54
protected
:
55
QQuickPane(QQuickPanePrivate &dd, QQuickItem *parent);
56
57
void
componentComplete() override;
58
59
void
contentItemChange(QQuickItem *newItem, QQuickItem *oldItem) override;
60
virtual
void
contentSizeChange(
const
QSizeF &newSize,
const
QSizeF &oldSize);
61
62
#
if
QT_CONFIG
(
accessibility
)
63
QAccessible::Role accessibleRole()
const
override;
64
#
endif
65
66
private
:
67
Q_DISABLE_COPY(QQuickPane)
68
Q_DECLARE_PRIVATE(QQuickPane)
69
};
70
71
QT_END_NAMESPACE
72
73
#
endif
// QQUICKPANE_P_H
QQuickPane
Definition
qquickpane_p.h:27
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtdeclarative
src
quicktemplates
qquickpane_p.h
Generated on
for Qt by
1.18.0