5#ifndef QQSTYLEKITREADER_P_H
6#define QQSTYLEKITREADER_P_H
20#include <QtQuick/private/qquickpalette_p.h>
35 Q_PROPERTY(QQStyleKitExtendableControlType type READ type WRITE setType NOTIFY typeChanged FINAL)
93 Q_ENUM(AlternateState)
99 void setType(QQStyleKitExtendableControlType type);
119 QQuickPalette *
palette()
const;
130 void setFont(
const QFont &font);
166 void updateControl();
167 void populateLocalStorage();
168 bool dontEmitChangedSignals()
const;
170 QQuickStateGroup *stateGroup();
171 QQmlComponent *createControlChangesComponent()
const;
172 QQmlComponent *createDelegateChangesComponent(
const QString &delegateName)
const;
173 void instantiatePropertyChanges(QQmlComponent *comp);
174 void maybeTrackDelegates();
176 bool rebuildEffectivePalette();
177 bool rebuildEffectiveFont();
183
184
185
186
189 bool m_dontEmitChangedSignals: 1;
190 bool m_effectiveVariationsDirty: 1;
192 QPointer<QQuickPalette> m_palette;
193 QPalette m_effectivePalette;
195 QFont m_effectiveFont;
196 bool m_effectiveFontDirty =
true;
197 quint64 m_lastTextFontOverridesSignature = 0;
198 mutable QQStyleKitPropertyStorage m_storage;
201 QQuickStateGroup *m_stateGroup =
nullptr;
204 QPointer<QQStyleKitReader> m_parentReader;
205 QList<QPointer<QQStyleKitVariation>> m_effectiveInAppVariations;
206 QList<QPointer<QQStyleKitVariation>> m_effectiveInStyleVariations;
210 static QMap<QString, QQmlComponent *> s_propertyChangesComponents;
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
void setFilter(const QString &filter)
void setControl(QQuickItem *item)
static Q_INVOKABLE bool insideControl(const QObject *child)
void setType(QQStyleKitExtendableControlType type)
QVariant readStyleProperty(PropertyStorageId key) const
void setHovered(bool hovered)
void setPressed(bool pressed)
void effectiveFontChanged()
static bool transitionEnabled()
QQSK::State controlState() const
void setFocused(bool focused)
void setPalette(QQuickPalette *palette)
static void setTransitionEnabled(bool enabled)
QFont effectiveFont() const
void setFont(const QFont &font)
QQStyleKitExtendableControlType type() const
QQStyleKitControlProperties * global() const
QPalette effectivePalette() const
static QList< QQStyleKitReader * > s_allReaders
void highlightedChanged()
void setVertical(bool vertical)
QQuickPalette * palette() const
void setEnabled(bool enabled)
void setHighlighted(bool highlighted)
void setChecked(bool checked)
void writeStyleProperty(PropertyStorageId key, const QVariant &value)
void customThemeNamesChanged()
QList< QQStyleKitCustomTheme * > customThemes() const
QStringList themeNames() const
QQmlComponent * dark() const
QQmlComponent * light() const
QStringList customThemeNames() const
void componentComplete() override
Invoked after the root component that caused this instantiation has completed construction.
QQStyleKitStyle * fallbackStyle() const
QQStyleKitTheme * theme() const
void fallbackStyleChanged()
static QQStyleKitStyle * current()
QQuickPalette * palette() const
void setThemeName(const QString &themeName)
void setDark(QQmlComponent *darkTheme)
QPalette paletteForControlType(QQStyleKitExtendableControlType type) const
QFont fontForControlType(QQStyleKitExtendableControlType type) const
void setLight(QQmlComponent *lightTheme)
QString themeName() const
void setFallbackStyle(QQStyleKitStyle *fallbackStyle)
static QQStyleKitAttached * qmlAttachedProperties(QObject *obj=nullptr)
Combined button and popup list for selecting options.