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
qqstylekitdebug_p.h
Go to the documentation of this file.
1// Copyright (C) 2025 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 QQSTYLEKITDEBUG_P_H
6#define QQSTYLEKITDEBUG_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
23
25
27{
28 Q_OBJECT
29 Q_PROPERTY(QQuickItem *control READ control WRITE setControl NOTIFY controlChanged FINAL)
32
33public:
34 QQuickItem *control() const;
35 void setControl(QQuickItem *item);
36
37 QString filter() const;
38 void setFilter(const QString &filter);
39
40 Q_INVOKABLE static bool insideControl(const QObject *child);
41
45
46private:
47 static const QQStyleKitPropertyGroup *groupBeingRead;
48 static QPointer<QQuickItem> m_item;
49 static QString m_filter;
50 static int m_outputCount;
51
52private:
53 static inline bool enabled() { return m_item != nullptr; }
54 static void notifyPropertyNotResolved(const PropertyPathId property);
55 static void notifyPropertyRead(
56 const PropertyPathId property,
57 const QQStyleKitControlProperties *resolvedControl,
58 const QQSK::State state,
59 const QVariant &value);
60 static void notifyPropertyWrite(
61 const QQStyleKitPropertyGroup *group,
62 const QQSK::Property property,
63 const QQStyleKitControlProperties *storage,
64 const QQSK::State state,
65 const PropertyStorageId key,
66 const QVariant &value);
67 static void trace(
68 const PropertyPathId property,
69 const QQStyleKitControlProperties *resolvedControl,
70 const QQSK::State state,
71 const PropertyStorageId key);
72
73 template <typename EnumType>
74 static QString enumToString(EnumType enumValue);
75 static QString objectName(const QObject *obj);
76 static QString stateToString(const QQSK::State state);
77 static QString styleReaderToString(const QQStyleKitReader *reader);
78 static QString controlToString(const QQStyleKitControlProperties *control);
79 static QString objectPath(const QQStyleKitControlProperties *properties, QObject *from);
80 static QString propertyPath(const QQStyleKitPropertyGroup *group, const PropertyPathId property);
81
83};
84
85QT_END_NAMESPACE
86
87#endif // QQSTYLEKITDEBUG_P_H
Q_INVOKABLE bool styleLoaded() const
void setStyleUrl(const QString &styleUrl)
QQStyleKitStyle * style() const
void transitionsEnabledChanged()
void setStyle(QQStyleKitStyle *style)
void setTransitionsEnabled(bool enabled)
QQStyleKitDebug * debug() const
bool transitionsEnabled() const
QString styleUrl() const
void filterChanged()
QString filter() const
void setFilter(const QString &filter)
void setControl(QQuickItem *item)
static Q_INVOKABLE bool insideControl(const QObject *child)
static QQStyleKitAttached * qmlAttachedProperties(QObject *obj=nullptr)
Combined button and popup list for selecting options.