5#ifndef QQSTYLEKITPALETTE_P_H
6#define QQSTYLEKITPALETTE_P_H
20#include <QtQuickTemplates2/private/qquicktheme_p.h>
21#include <QtQuick/private/qquickpalette_p.h>
28 Q_PROPERTY(QQuickPalette *system READ system NOTIFY systemChanged FINAL)
86
87
88
89
90
92 mutable std::unique_ptr<QQuickPalette> m_checkBox;
93 mutable std::unique_ptr<QQuickPalette> m_button;
94 mutable std::unique_ptr<QQuickPalette> m_comboBox;
95 mutable std::unique_ptr<QQuickPalette> m_groupBox;
96 mutable std::unique_ptr<QQuickPalette> m_itemDelegate;
97 mutable std::unique_ptr<QQuickPalette> m_label;
98 mutable std::unique_ptr<QQuickPalette> m_radioButton;
99 mutable std::unique_ptr<QQuickPalette> m_spinBox;
100 mutable std::unique_ptr<QQuickPalette> m_switchControl;
101 mutable std::unique_ptr<QQuickPalette> m_tabBar;
102 mutable std::unique_ptr<QQuickPalette> m_textArea;
103 mutable std::unique_ptr<QQuickPalette> m_textField;
104 mutable std::unique_ptr<QQuickPalette> m_toolBar;
108 quint32 m_setMask = 0;
109 bool isSet(QQuickTheme::Scope scope)
const {
return (m_setMask & (1u <<
int(scope))) != 0; }
110 void markSet(QQuickTheme::Scope scope) { m_setMask |= (1u <<
int(scope)); }
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 scrollIndicatorChanged()
void componentComplete() override
Invoked after the root component that caused this instantiation has completed construction.
const QList< QObject * > children() const
void abstractButtonChanged()
void itemDelegateChanged()
void progressBarChanged()
void classBegin() override
Invoked after class creation, but before any properties have been set.
QList< QQStyleKitVariation * > variations() const
void radioButtonChanged()
void switchControlChanged()
QQmlListProperty< QObject > data()
void applicationWindowChanged()
void toolSeparatorChanged()
QQmlComponent * theme() const
void setName(const QString &newName)
void setTheme(QQmlComponent *newTheme)
void setFilter(const QString &filter)
void setControl(QQuickItem *item)
static Q_INVOKABLE bool insideControl(const QObject *child)
void switchControlChanged()
QQuickPalette * groupBox() const
QQuickPalette * checkBox() const
QQuickPalette * toolBar() const
QQuickPalette * textField() const
QQuickPalette * spinBox() const
QQuickPalette * system() const
QQuickPalette * switchControl() const
void itemDelegateChanged()
QQuickPalette * comboBox() const
QQuickPalette * itemDelegate() const
QQuickPalette * button() const
QQuickPalette * radioButton() const
QQStyleKitPalette * fallbackPalette() const
void radioButtonChanged()
QQuickPalette * textArea() const
void fallbackPaletteChanged()
QQuickPalette * tabBar() const
void setFallbackPalette(QQStyleKitPalette *fallback)
QQuickPalette * label() const
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)
QQStyleKitPalette * palettes()
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.
#define IMPLEMENT_ACCESSORS(NAME, TYPE)