5#ifndef QQSTYLEKITSTYLE_P_H
6#define QQSTYLEKITSTYLE_P_H
26#include <QtQuickTemplates2/private/qquickdeferredpointer_p_p.h>
36 Q_PROPERTY(QQuickPalette *palette READ palette NOTIFY paletteChanged FINAL)
45 Q_CLASSINFO(
"DeferredPropertyNames",
"fallbackStyle")
63 void setLight(QQmlComponent *lightTheme);
66 void setDark(QQmlComponent *darkTheme);
101 void recreateTheme();
102 void executeFallbackStyle(
bool complete =
false);
103 void syncFromQPalette(
const QPalette &palette);
104 QPalette effectivePalette()
const;
109 bool m_isUpdatingPalette =
false;
111 QQuickDeferredPointer<QQStyleKitStyle> m_fallbackStyle;
112 QPointer<QQmlComponent> m_light;
113 QPointer<QQmlComponent> m_dark;
114 QPointer<QQStyleKitTheme> m_theme;
115 QPointer<QQmlComponent> m_currentThemeComponent;
116 QQuickPalette *m_paletteProxy =
nullptr;
117 QPalette m_effectivePalette;
118 QPointer<QQuickPalette> m_palette;
120 QString m_effectiveThemeName;
121 QStringList m_themeNames;
122 QStringList m_customThemeNames;
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 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.