5#ifndef QQSTYLEKITPROPERTYRESOLVER_P_H
6#define QQSTYLEKITPROPERTYRESOLVER_P_H
51 const QQSK::Property property,
56 const QQSK::Property property,
57 const QVariant &value);
61 const QQSK::Property property);
64 QQStyleKitExtendableControlType exactType);
67 static bool s_styleWarningsIssued;
68 static bool s_isReadingProperty;
69 static QQSK::State s_cachedState;
70 static QVarLengthArray<QQSK::StateFlag, 10> s_cachedStateList;
74 static QVariant readPropertyInStorageForState(
76 const T *storageProvider, QQSK::State state);
78 template <
class INDICES_CONTAINER>
79 static QVariant readPropertyInControlForStates(
82 int startIndex,
int recursionLevel);
84 static QVariant readPropertyInControl(
87 static QVariant readPropertyInRelevantControls(
89 const QQStyleKitExtendableControlType exactType,
90 const QList<QQStyleKitExtendableControlType> baseTypes);
92 static QVariant readPropertyInStyle(
93 const PropertyPathIds &ids,
94 const QQStyleKitExtendableControlType exactType,
95 const QList<QQStyleKitExtendableControlType> baseTypes,
98 static QVariant readProperty(
99 const PropertyPathIds &ids,
103 static void cacheReaderState(QQSK::State state);
104 static void addInstanceVariationsToReader(
106 const QStringList &inAppVariationNames,
107 const QVarLengthArray<
const QQStyleKitControls *, 6> &stylesAndThemes);
108 static void addTypeVariationsToReader(
110 const QQStyleKitExtendableControlType parentType,
112 static void rebuildVariationsForReader(
QQSK::Property property() const
PropertyStorageId storageId(QQSK::State state) const
PropertyPathId_t pathId() const
void setColor(const QColor &color)
void emitGlobally(QQStyleKitExtendableControlType controlType, CHANGED_SIGNALS... changedSignals) const
void setWidth(qreal width)
qreal rightPadding() const
qreal leftPadding() const
void leftPaddingChanged()
QQStyleKitTextProperties * text() const
void setTopPadding(qreal topPadding)
QQSK::Subclass subclass() const
void emitChangedForAllStyleProperties()
void rightPaddingChanged()
QQStyleKitIndicatorWithSubTypes * indicator() const
void setTransition(QQuickTransition *transition)
void setSpacing(qreal spacing)
void emitGlobally(QQStyleKitExtendableControlType controlType, CHANGED_SIGNALS... changedSignals) const
QQStyleKitDelegateProperties * background() const
QQStyleKitStyle * style() const
void setRightPadding(qreal rightPadding)
QQStyleKitReader * asQQStyleKitReader() const
QQuickTransition * transition() const
QQStyleKitHandleProperties * handle() const
QQStyleKitControlState * asQQStyleKitState() const
void forEachUsedDelegate(std::function< void(QQStyleKitDelegateProperties *, QQSK::Delegate, const QString &)> f)
void setBottomPadding(qreal bottomPadding)
void setPadding(qreal padding)
void setLeftPadding(qreal leftPadding)
void bottomPaddingChanged()
qreal bottomPadding() const
void parentControlChanged()
void setParentControl(QObject *control)
~QQStyleKitDelegateContainer() override
QQStyleKitDelegateProperties * delegateProperties() const
void componentComplete() override
Invoked after the root component that caused this instantiation has completed construction.
void delegateInstanceChanged()
void setDelegateProperties(QQStyleKitDelegateProperties *delegateProperties)
QQuickItem * delegateInstance() const
QObject * parentControl() const
QQStyleKitDelegateProperties * first() const
QQStyleKitDelegateProperties * second() const
void setColor(const QColor &color)
QQuickImage::FillMode fillMode() const
void emitGlobally(QQStyleKitExtendableControlType controlType, CHANGED_SIGNALS... changedSignals) const
void setFillMode(QQuickImage::FillMode fillMode)
void setSource(const QUrl &source)
QQStyleKitDelegateProperties * foreground() const
void emitGlobally(QQStyleKitExtendableControlType controlType, CHANGED_SIGNALS... changedSignals) const
void emitGlobally(QQStyleKitExtendableControlType controlType, CHANGED_SIGNALS... changedSignals) const
QQStyleKitDelegateProperties * foreground() const
QQStyleKitIndicatorProperties * down() const
QQStyleKitIndicatorProperties * up() const
bool setStyleProperty(QQSK::Property property, T value)
QQStyleKitPropertyGroupSpace m_groupSpace
T styleProperty(QQSK::Property property, const T &defaultValue) const
T styleProperty(QQSK::Property property, QQSK::Property alternative=QQSK::Property::NoProperty) const
T * lazyCreateGroup(T *const &ptr, QQSK::PropertyGroup group) const
void emitChangedForAllStylePropertiesRecursive()
QQSK::PropertyPathFlags pathFlags() const
void handleStylePropertyChanged(void(SUBCLASS::*changedSignal)())
QQSK::PropertyPathFlags m_pathFlags
PropertyPathId propertyPathId(QQSK::Property property, PropertyPathId::Flag flag) const
void handleStylePropertiesChanged(CHANGED_SIGNALS... changedSignals)
bool isDefined(QQSK::Property property) const
QQStyleKitControlProperties * controlProperties() const
QString pathToString() const
bool isControlProperties() const
static QVariant readStyleProperty(const QQStyleKitPropertyGroup *group, const QQSK::Property property, const QQSK::Property alternative=QQSK::Property::NoProperty)
static bool hasLocalStyleProperty(const QQStyleKitPropertyGroup *group, const QQSK::Property property)
static const QList< QQStyleKitExtendableControlType > baseTypesForType(QQStyleKitExtendableControlType exactType)
static bool writeStyleProperty(const QQStyleKitPropertyGroup *group, const QQSK::Property property, const QVariant &value)
void setRightPadding(qreal rightPadding)
void setBottomPadding(qreal bottomPadding)
void setTopPadding(qreal topPadding)
void setLeftPadding(qreal leftPadding)
void setPadding(qreal padding)
qreal rightPadding() const
void setItalic(bool italic)
void setAlignment(Qt::Alignment alignment)
qreal bottomPadding() const
void setPointSize(qreal pointSize)
void setColor(const QColor &color)
void bottomPaddingChanged()
Qt::Alignment alignment() const
void emitGlobally(QQStyleKitExtendableControlType controlType, CHANGED_SIGNALS... changedSignals) const
void rightPaddingChanged()
void leftPaddingChanged()
qreal leftPadding() const
Combined button and popup list for selecting options.
constexpr PropertyPathId_t nestedGroupCount
constexpr PropertyPathId_t nestedGroupsStartSize
constexpr PropertyPathId_t maxStateCombinationCount
constexpr PropertyPathId_t subtypeStorageSpaceSize
constexpr PropertyPathId_t stateStorageSpaceSize
constexpr PropertyPathId_t subtypeCount
constexpr PropertyPathId_t maxPropertyStorageSpaceSize