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
{
PanelRole,
RoleCount
};
Q_INVOKABLE QskBoxSkinlet( QskSkin* = nullptr );

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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