5#ifndef QQSTYLEKITREADER_P_H
6#define QQSTYLEKITREADER_P_H
20#include <QtQuick/private/qquickpalette_p.h>
35 Q_PROPERTY(QQStyleKitExtendableControlType controlType READ controlType WRITE setControlType NOTIFY controlTypeChanged FINAL)
92 Q_ENUM(AlternateState)
118 QQuickPalette *
palette()
const;
162 void updateControl();
163 void populateLocalStorage();
164 bool dontEmitChangedSignals()
const;
166 QQuickStateGroup *stateGroup();
167 QQmlComponent *createControlChangesComponent()
const;
168 QQmlComponent *createDelegateChangesComponent(
const QString &delegateName)
const;
169 void instantiatePropertyChanges(QQmlComponent *comp);
170 void maybeTrackDelegates();
172 bool rebuildEffectivePalette();
173 bool rebuildEffectiveFont();
179
180
181
182
185 bool m_dontEmitChangedSignals: 1;
186 bool m_effectiveVariationsDirty: 1;
188 QPointer<QQuickPalette> m_palette;
189 QPalette m_effectivePalette;
191 bool m_fontDirty =
true;
192 quint64 m_lastTextFontOverridesSignature = 0;
193 mutable QQStyleKitPropertyStorage m_storage;
196 QQuickStateGroup *m_stateGroup =
nullptr;
199 QPointer<QQStyleKitReader> m_parentReader;
200 QList<QPointer<QQStyleKitVariation>> m_effectiveInAppVariations;
201 QList<QPointer<QQStyleKitVariation>> m_effectiveInStyleVariations;
205 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)
QVariant readStyleProperty(PropertyStorageId key) const
void setHovered(bool hovered)
void setPressed(bool pressed)
static bool transitionEnabled()
QQSK::State controlState() const
void setFocused(bool focused)
void setPalette(QQuickPalette *palette)
static void setTransitionEnabled(bool enabled)
QQStyleKitControlProperties * global() const
void setControlType(QQStyleKitExtendableControlType type)
QPalette effectivePalette() const
static QList< QQStyleKitReader * > s_allReaders
void highlightedChanged()
void setVertical(bool vertical)
QQStyleKitExtendableControlType controlType() const
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.