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
qqstylekitdelegatecontainer_p.h
Go to the documentation of this file.
1
// Copyright (C) 2026 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
QQSTYLEKITDELEGATECONTAINER_P_H
6
#
define
QQSTYLEKITDELEGATECONTAINER_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
<
QtQuick
/
qquickitem
.
h
>
20
#
include
<
QtQml
/
qqmlparserstatus
.
h
>
21
22
QT_BEGIN_NAMESPACE
23
24
class
QQStyleKitDelegateProperties;
25
26
class
QQStyleKitDelegateContainer
:
public
QQuickItem
27
{
28
Q_OBJECT
29
Q_PROPERTY(QQStyleKitDelegateProperties *delegateStyle READ delegateStyle WRITE setDelegateStyle NOTIFY delegateStyleChanged FINAL)
30
Q_PROPERTY
(
QObject
*
quickControl
READ
quickControl
WRITE
setQuickControl
NOTIFY
quickControlChanged
REQUIRED
FINAL
)
31
Q_PROPERTY
(
QQuickItem
*
delegateInstance
READ
delegateInstance
NOTIFY
delegateInstanceChanged
FINAL
)
32
QML_NAMED_ELEMENT
(
DelegateContainer
)
33
34
public
:
35
explicit
QQStyleKitDelegateContainer
(
QQuickItem
*
parent
=
nullptr
);
36
~
QQStyleKitDelegateContainer
()
override
;
37
38
QQStyleKitDelegateProperties *
delegateStyle
()
const
;
39
void
setDelegateStyle
(QQStyleKitDelegateProperties *delegateProperties);
40
41
QObject
*
quickControl
()
const
;
42
void
setQuickControl
(QObject *control);
43
44
QQuickItem
*
delegateInstance
()
const
;
45
46
signals
:
47
void
delegateStyleChanged
();
48
void
quickControlChanged
();
49
void
delegateInstanceChanged
();
50
51
protected
:
52
void
componentComplete
()
override
;
53
void
geometryChange
(
const
QRectF &newGeometry,
const
QRectF &oldGeometry)
override
;
54
55
private
:
56
void
updateImplicitSize();
57
void
maybeCreateDelegate();
58
void
maybeCreateShadow();
59
60
private
:
61
QPointer<QQStyleKitDelegateProperties> m_delegateProperties;
62
QPointer<QObject> m_control;
63
64
QPointer<QQuickItem> m_delegateInstance;
65
QPointer<QQuickItem> m_shadowInstance;
66
67
QPointer<QQmlComponent> m_delegateComponent;
68
QPointer<QQmlComponent> m_shadowComponent;
69
70
bool
m_inGeometryChange =
false
;
71
72
static
QQmlComponent *s_defaultDelegateComponent;
73
static
QQmlComponent *s_defaultShadowComponent;
74
};
75
76
QT_END_NAMESPACE
77
78
#
endif
// QQSTYLEKITDELEGATECONTAINER_P_H
QQStyleKitDelegateContainer
Definition
qqstylekitdelegatecontainer_p.h:27
QQStyleKitDelegateContainer::delegateStyle
QQStyleKitDelegateProperties * delegateStyle() const
Definition
qqstylekitdelegatecontainer.cpp:28
QQStyleKitDelegateContainer::~QQStyleKitDelegateContainer
~QQStyleKitDelegateContainer() override
Definition
qqstylekitdelegatecontainer.cpp:19
QQStyleKitDelegateContainer::componentComplete
void componentComplete() override
Invoked after the root component that caused this instantiation has completed construction.
Definition
qqstylekitdelegatecontainer.cpp:210
QQStyleKitDelegateContainer::quickControl
QObject * quickControl() const
Definition
qqstylekitdelegatecontainer.cpp:51
QQStyleKitDelegateContainer::setQuickControl
void setQuickControl(QObject *control)
Definition
qqstylekitdelegatecontainer.cpp:56
QQStyleKitDelegateContainer::quickControlChanged
void quickControlChanged()
QQStyleKitDelegateContainer::delegateInstanceChanged
void delegateInstanceChanged()
QQStyleKitDelegateContainer::geometryChange
void geometryChange(const QRectF &newGeometry, const QRectF &oldGeometry) override
Definition
qqstylekitdelegatecontainer.cpp:276
QQStyleKitDelegateContainer::setDelegateStyle
void setDelegateStyle(QQStyleKitDelegateProperties *delegateProperties)
Definition
qqstylekitdelegatecontainer.cpp:33
QQStyleKitDelegateContainer::delegateInstance
QQuickItem * delegateInstance() const
Definition
qqstylekitdelegatecontainer.cpp:64
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtdeclarative
src
labs
stylekit
impl
qqstylekitdelegatecontainer_p.h
Generated on
for Qt by
1.18.0