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
qqstylekitdelegate_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
QQSTYLEKITDELEGATE_P_H
6
#
define
QQSTYLEKITDELEGATE_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
/
private
/
qquickimplicitsizeitem_p
.
h
>
20
#
include
<
QtQml
/
qqmlparserstatus
.
h
>
21
22
QT_BEGIN_NAMESPACE
23
24
class
QQStyleKitDelegateProperties;
25
26
class
QQStyleKitDelegate
:
public
QQuickImplicitSizeItem
27
{
28
Q_OBJECT
29
Q_PROPERTY(QQStyleKitDelegateProperties *delegateStyle READ delegateStyle WRITE setDelegateStyle NOTIFY delegateStyleChanged REQUIRED FINAL)
30
QML_NAMED_ELEMENT
(
StyledItem
)
31
32
public
:
33
explicit
QQStyleKitDelegate
(
QQuickItem
*
parent
=
nullptr
);
34
35
QQStyleKitDelegateProperties *
delegateStyle
()
const
;
36
void
setDelegateStyle
(QQStyleKitDelegateProperties *delegateStyle);
37
38
signals
:
39
void
delegateStyleChanged
();
40
41
private
:
42
void
updateImplicitSize();
43
void
maybeCreateColor();
44
void
maybeCreateGradient();
45
void
maybeCreateImage();
46
47
private
:
48
QPointer<QQStyleKitDelegateProperties> m_delegateProperties;
49
QPointer<QQuickItem> m_colorOverlay;
50
QPointer<QQuickItem> m_gradientOverlay;
51
QPointer<QQuickItem> m_imageOverlay;
52
};
53
54
QT_END_NAMESPACE
55
56
#
endif
// QQSTYLEKITDELEGATE_P_H
QQStyleKitDelegate
Definition
qqstylekitdelegate_p.h:27
QQStyleKitDelegate::setDelegateStyle
void setDelegateStyle(QQStyleKitDelegateProperties *delegateStyle)
Definition
qqstylekitdelegate.cpp:77
QQStyleKitDelegate::delegateStyle
QQStyleKitDelegateProperties * delegateStyle() const
Definition
qqstylekitdelegate.cpp:72
QQuickImplicitSizeItem
Definition
qquickimplicitsizeitem_p.h:26
QQuickItem
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition
qquickitem.h:64
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtdeclarative
src
labs
stylekit
qqstylekitdelegate_p.h
Generated on
for Qt by
1.18.0