all node role enums should have RoleCount

This commit is contained in:
Uwe Rathmann 2022-04-20 13:50:14 +02:00
parent 8abbae3661
commit d011d5d1ea
18 changed files with 48 additions and 19 deletions

View File

@ -18,6 +18,7 @@ class QSK_EXPORT QskBoxSkinlet : public QskSkinlet
enum NodeRole enum NodeRole
{ {
PanelRole, PanelRole,
RoleCount
}; };
Q_INVOKABLE QskBoxSkinlet( QskSkin* = nullptr ); Q_INVOKABLE QskBoxSkinlet( QskSkin* = nullptr );

View File

@ -21,6 +21,8 @@ class QSK_EXPORT QskCheckBoxSkinlet : public QskSkinlet
{ {
PanelRole, PanelRole,
IndicatorRole, IndicatorRole,
RoleCount
}; };
Q_INVOKABLE QskCheckBoxSkinlet( QskSkin* = nullptr ); Q_INVOKABLE QskCheckBoxSkinlet( QskSkin* = nullptr );

View File

@ -19,7 +19,8 @@ class QSK_EXPORT QskFocusIndicatorSkinlet : public QskSkinlet
public: public:
enum NodeRole enum NodeRole
{ {
FrameRole FrameRole,
RoleCount
}; };
Q_INVOKABLE QskFocusIndicatorSkinlet( QskSkin* = nullptr ); Q_INVOKABLE QskFocusIndicatorSkinlet( QskSkin* = nullptr );

View File

@ -19,7 +19,10 @@ class QSK_EXPORT QskGraphicLabelSkinlet : public QskSkinlet
public: public:
enum NodeRole enum NodeRole
{ {
PanelRole, GraphicRole PanelRole,
GraphicRole,
RoleCount
}; };
Q_INVOKABLE QskGraphicLabelSkinlet( QskSkin* = nullptr ); Q_INVOKABLE QskGraphicLabelSkinlet( QskSkin* = nullptr );

View File

@ -23,6 +23,14 @@ class QSK_EXPORT QskListViewSkinlet : public QskScrollViewSkinlet
using Inherited = QskScrollViewSkinlet; using Inherited = QskScrollViewSkinlet;
public: public:
enum NodeRole
{
TextRole,
GraphicRole,
RoleCount
};
Q_INVOKABLE QskListViewSkinlet( QskSkin* = nullptr ); Q_INVOKABLE QskListViewSkinlet( QskSkin* = nullptr );
~QskListViewSkinlet() override; ~QskListViewSkinlet() override;
@ -30,12 +38,6 @@ class QSK_EXPORT QskListViewSkinlet : public QskScrollViewSkinlet
Qt::SizeHint, const QSizeF& ) const override; Qt::SizeHint, const QSizeF& ) const override;
protected: protected:
enum NodeRole
{
TextRole,
GraphicRole
};
QSGNode* updateContentsNode( QSGNode* updateContentsNode(
const QskScrollView*, QSGNode* ) const override; const QskScrollView*, QSGNode* ) const override;

View File

@ -18,7 +18,9 @@ class QSK_EXPORT QskPageIndicatorSkinlet : public QskSkinlet
enum NodeRole enum NodeRole
{ {
PanelRole, PanelRole,
BulletsRole BulletsRole,
RoleCount
}; };
Q_INVOKABLE QskPageIndicatorSkinlet( QskSkin* = nullptr ); Q_INVOKABLE QskPageIndicatorSkinlet( QskSkin* = nullptr );

View File

@ -22,7 +22,7 @@ class QSK_EXPORT QskProgressBarSkinlet : public QskSkinlet
GrooveRole, GrooveRole,
BarRole, BarRole,
RoleCount, RoleCount
}; };
Q_INVOKABLE QskProgressBarSkinlet( QskSkin* = nullptr ); Q_INVOKABLE QskProgressBarSkinlet( QskSkin* = nullptr );

View File

@ -21,7 +21,9 @@ class QSK_EXPORT QskPushButtonSkinlet : public QskSkinlet
{ {
PanelRole, PanelRole,
TextRole, TextRole,
GraphicRole GraphicRole,
RoleCount
}; };
Q_INVOKABLE QskPushButtonSkinlet( QskSkin* = nullptr ); Q_INVOKABLE QskPushButtonSkinlet( QskSkin* = nullptr );

View File

@ -20,6 +20,7 @@ class QSK_EXPORT QskSeparatorSkinlet : public QskSkinlet
enum NodeRole enum NodeRole
{ {
PanelRole, PanelRole,
RoleCount
}; };
Q_INVOKABLE QskSeparatorSkinlet( QskSkin* = nullptr ); Q_INVOKABLE QskSeparatorSkinlet( QskSkin* = nullptr );

View File

@ -22,7 +22,9 @@ class QSK_EXPORT QskSliderSkinlet : public QskSkinlet
PanelRole, PanelRole,
GrooveRole, GrooveRole,
FillRole, FillRole,
HandleRole HandleRole,
RoleCount
}; };
Q_INVOKABLE QskSliderSkinlet( QskSkin* = nullptr ); Q_INVOKABLE QskSliderSkinlet( QskSkin* = nullptr );

View File

@ -19,7 +19,8 @@ class QSK_EXPORT QskStatusIndicatorSkinlet : public QskSkinlet
public: public:
enum NodeRole enum NodeRole
{ {
GraphicRole GraphicRole,
RoleCount
}; };
Q_INVOKABLE QskStatusIndicatorSkinlet( QskSkin* = nullptr ); Q_INVOKABLE QskStatusIndicatorSkinlet( QskSkin* = nullptr );

View File

@ -19,7 +19,8 @@ class QSK_EXPORT QskSubWindowAreaSkinlet : public QskSkinlet
public: public:
enum NodeRole enum NodeRole
{ {
PanelRole PanelRole,
RoleCount
}; };
Q_INVOKABLE QskSubWindowAreaSkinlet( QskSkin* = nullptr ); Q_INVOKABLE QskSubWindowAreaSkinlet( QskSkin* = nullptr );

View File

@ -22,7 +22,9 @@ class QSK_EXPORT QskSubWindowSkinlet : public QskPopupSkinlet
PanelRole = QskPopupSkinlet::RoleCount, PanelRole = QskPopupSkinlet::RoleCount,
TitleBarRole, TitleBarRole,
SymbolRole, SymbolRole,
TitleRole TitleRole,
RoleCount
}; };
Q_INVOKABLE QskSubWindowSkinlet( QskSkin* = nullptr ); Q_INVOKABLE QskSubWindowSkinlet( QskSkin* = nullptr );

View File

@ -20,6 +20,8 @@ class QSK_EXPORT QskSwitchButtonSkinlet : public QskSkinlet
GrooveRole, GrooveRole,
HandleRole, HandleRole,
RippleRole, RippleRole,
RoleCount
}; };
Q_INVOKABLE QskSwitchButtonSkinlet( QskSkin* = nullptr ); Q_INVOKABLE QskSwitchButtonSkinlet( QskSkin* = nullptr );

View File

@ -18,7 +18,9 @@ class QSK_EXPORT QskTabButtonSkinlet : public QskSkinlet
enum NodeRole enum NodeRole
{ {
PanelRole, PanelRole,
TextRole TextRole,
RoleCount
}; };
Q_INVOKABLE QskTabButtonSkinlet( QskSkin* = nullptr ); Q_INVOKABLE QskTabButtonSkinlet( QskSkin* = nullptr );

View File

@ -19,7 +19,8 @@ class QSK_EXPORT QskTabViewSkinlet : public QskSkinlet
public: public:
enum NodeRole enum NodeRole
{ {
PageRole PageRole,
RoleCount
}; };
Q_INVOKABLE QskTabViewSkinlet( QskSkin* = nullptr ); Q_INVOKABLE QskTabViewSkinlet( QskSkin* = nullptr );

View File

@ -17,7 +17,8 @@ class QSK_EXPORT QskTextInputSkinlet : public QskSkinlet
public: public:
enum NodeRole enum NodeRole
{ {
PanelRole PanelRole,
RoleCount
}; };
Q_INVOKABLE QskTextInputSkinlet( QskSkin* = nullptr ); Q_INVOKABLE QskTextInputSkinlet( QskSkin* = nullptr );

View File

@ -17,7 +17,10 @@ class QSK_EXPORT QskTextLabelSkinlet : public QskSkinlet
public: public:
enum NodeRole enum NodeRole
{ {
PanelRole, TextRole PanelRole,
TextRole,
RoleCount
}; };
Q_INVOKABLE QskTextLabelSkinlet( QskSkin* = nullptr ); Q_INVOKABLE QskTextLabelSkinlet( QskSkin* = nullptr );