Skip to content

Commit

Permalink
NodeRole enums qualified as quint8
Browse files Browse the repository at this point in the history
  • Loading branch information
uwerat committed Dec 9, 2024
1 parent 3a83f5f commit 4e6ee36
Show file tree
Hide file tree
Showing 28 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion src/controls/QskBoxSkinlet.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class QSK_EXPORT QskBoxSkinlet : public QskSkinlet
using Inherited = QskSkinlet;

public:
enum NodeRole
enum NodeRole : quint8
{
PanelRole,
RoleCount
Expand Down
2 changes: 1 addition & 1 deletion src/controls/QskCheckBoxSkinlet.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class QSK_EXPORT QskCheckBoxSkinlet : public QskSkinlet
using Inherited = QskSkinlet;

public:
enum NodeRole
enum NodeRole : quint8
{
PanelRole,
BoxRole,
Expand Down
2 changes: 1 addition & 1 deletion src/controls/QskComboBoxSkinlet.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class QSK_EXPORT QskComboBoxSkinlet : public QskSkinlet
using Inherited = QskSkinlet;

public:
enum NodeRole
enum NodeRole : quint8
{
PanelRole,
IconRole,
Expand Down
2 changes: 1 addition & 1 deletion src/controls/QskDrawerSkinlet.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class QSK_EXPORT QskDrawerSkinlet : public QskPopupSkinlet
using Inherited = QskPopupSkinlet;

public:
enum NodeRole
enum NodeRole : quint8
{
ContentsRole = Inherited::RoleCount,
PanelRole,
Expand Down
2 changes: 1 addition & 1 deletion src/controls/QskFocusIndicatorSkinlet.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class QSK_EXPORT QskFocusIndicatorSkinlet : public QskSkinlet
using Inherited = QskSkinlet;

public:
enum NodeRole
enum NodeRole : quint8
{
FrameRole,
RoleCount
Expand Down
2 changes: 1 addition & 1 deletion src/controls/QskGraphicLabelSkinlet.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class QSK_EXPORT QskGraphicLabelSkinlet : public QskSkinlet
using Inherited = QskSkinlet;

public:
enum NodeRole
enum NodeRole : quint8
{
PanelRole,
GraphicRole,
Expand Down
2 changes: 1 addition & 1 deletion src/controls/QskListViewSkinlet.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class QSK_EXPORT QskListViewSkinlet : public QskScrollViewSkinlet
using Inherited = QskScrollViewSkinlet;

public:
enum NodeRole
enum NodeRole : quint8
{
TextRole = Inherited::RoleCount,
GraphicRole,
Expand Down
2 changes: 1 addition & 1 deletion src/controls/QskMenuSkinlet.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class QSK_EXPORT QskMenuSkinlet : public QskPopupSkinlet
using Inherited = QskPopupSkinlet;

public:
enum NodeRole
enum NodeRole : quint8
{
ContentsRole = Inherited::RoleCount,
PanelRole,
Expand Down
2 changes: 1 addition & 1 deletion src/controls/QskPageIndicatorSkinlet.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class QSK_EXPORT QskPageIndicatorSkinlet : public QskSkinlet
using Inherited = QskSkinlet;

public:
enum NodeRole
enum NodeRole : quint8
{
PanelRole,
BulletsRole,
Expand Down
2 changes: 1 addition & 1 deletion src/controls/QskPopupSkinlet.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class QSK_EXPORT QskPopupSkinlet : public QskSkinlet
using Inherited = QskSkinlet;

public:
enum NodeRole
enum NodeRole : quint8
{
OverlayRole,
RoleCount
Expand Down
2 changes: 1 addition & 1 deletion src/controls/QskProgressIndicatorSkinlet.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class QSK_EXPORT QskProgressIndicatorSkinlet : public QskSkinlet
using Inherited = QskSkinlet;

public:
enum NodeRole
enum NodeRole : quint8
{
GrooveRole,
FillRole,
Expand Down
2 changes: 1 addition & 1 deletion src/controls/QskPushButtonSkinlet.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class QSK_EXPORT QskPushButtonSkinlet : public QskSkinlet
using Inherited = QskSkinlet;

public:
enum NodeRole
enum NodeRole : quint8
{
PanelRole,
SplashRole,
Expand Down
2 changes: 1 addition & 1 deletion src/controls/QskRadioBoxSkinlet.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class QSK_EXPORT QskRadioBoxSkinlet : public QskSkinlet
using Inherited = QskSkinlet;

public:
enum NodeRole
enum NodeRole : quint8
{
PanelRole,
ButtonRole,
Expand Down
2 changes: 1 addition & 1 deletion src/controls/QskScrollViewSkinlet.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class QSK_EXPORT QskScrollViewSkinlet : public QskSkinlet
using Inherited = QskSkinlet;

public:
enum NodeRole
enum NodeRole : quint8
{
PanelRole,
ViewportRole,
Expand Down
2 changes: 1 addition & 1 deletion src/controls/QskSegmentedBarSkinlet.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class QSK_EXPORT QskSegmentedBarSkinlet : public QskSkinlet
using Inherited = QskSkinlet;

public:
enum NodeRole
enum NodeRole : quint8
{
PanelRole,
SegmentRole,
Expand Down
2 changes: 1 addition & 1 deletion src/controls/QskSeparatorSkinlet.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class QSK_EXPORT QskSeparatorSkinlet : public QskSkinlet
using Inherited = QskSkinlet;

public:
enum NodeRole
enum NodeRole : quint8
{
PanelRole,
RoleCount
Expand Down
2 changes: 1 addition & 1 deletion src/controls/QskSliderSkinlet.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class QSK_EXPORT QskSliderSkinlet : public QskSkinlet
public:
QSK_STATES( Filled )

enum NodeRole
enum NodeRole : quint8
{
PanelRole,
GrooveRole,
Expand Down
2 changes: 1 addition & 1 deletion src/controls/QskSpinBoxSkinlet.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class QSK_EXPORT QskSpinBoxSkinlet : public QskSkinlet
public:
Q_INVOKABLE QskSpinBoxSkinlet( QskSkin* = nullptr );

enum NodeRole
enum NodeRole : quint8
{
PanelRole,
TextPanelRole,
Expand Down
2 changes: 1 addition & 1 deletion src/controls/QskStatusIndicatorSkinlet.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class QSK_EXPORT QskStatusIndicatorSkinlet : public QskSkinlet
using Inherited = QskSkinlet;

public:
enum NodeRole
enum NodeRole : quint8
{
GraphicRole,
RoleCount
Expand Down
2 changes: 1 addition & 1 deletion src/controls/QskSubWindowAreaSkinlet.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class QSK_EXPORT QskSubWindowAreaSkinlet : public QskSkinlet
using Inherited = QskSkinlet;

public:
enum NodeRole
enum NodeRole : quint8
{
PanelRole,
RoleCount
Expand Down
2 changes: 1 addition & 1 deletion src/controls/QskSubWindowSkinlet.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class QSK_EXPORT QskSubWindowSkinlet : public QskPopupSkinlet
using Inherited = QskPopupSkinlet;

public:
enum NodeRole
enum NodeRole : quint8
{
PanelRole = QskPopupSkinlet::RoleCount,
TitleBarRole,
Expand Down
2 changes: 1 addition & 1 deletion src/controls/QskSwitchButtonSkinlet.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class QSK_EXPORT QskSwitchButtonSkinlet : public QskSkinlet
using Inherited = QskSkinlet;

public:
enum NodeRole
enum NodeRole : quint8
{
GrooveRole,
HandleRole,
Expand Down
2 changes: 1 addition & 1 deletion src/controls/QskTabButtonSkinlet.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class QSK_EXPORT QskTabButtonSkinlet : public QskSkinlet
using Inherited = QskSkinlet;

public:
enum NodeRole
enum NodeRole : quint8
{
PanelRole,
TextRole,
Expand Down
2 changes: 1 addition & 1 deletion src/controls/QskTabViewSkinlet.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class QSK_EXPORT QskTabViewSkinlet : public QskSkinlet
using Inherited = QskSkinlet;

public:
enum NodeRole
enum NodeRole : quint8
{
PageRole,
RoleCount
Expand Down
2 changes: 1 addition & 1 deletion src/controls/QskTextFieldSkinlet.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class QSK_EXPORT QskTextFieldSkinlet : public QskSkinlet
public:
QSK_STATES( Selected )

enum NodeRole
enum NodeRole : quint8
{
PanelRole,
PlaceholderTextRole,
Expand Down
2 changes: 1 addition & 1 deletion src/controls/QskTextLabelSkinlet.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class QSK_EXPORT QskTextLabelSkinlet : public QskSkinlet
using Inherited = QskSkinlet;

public:
enum NodeRole
enum NodeRole : quint8
{
PanelRole,
TextRole,
Expand Down
2 changes: 1 addition & 1 deletion src/nodes/QskArcNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

namespace
{
enum NodeRole
enum NodeRole : quint8
{
/*
If possible border + filling will be displayed by ArcRole
Expand Down
2 changes: 1 addition & 1 deletion src/nodes/QskBoxNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

namespace
{
enum Role
enum NodeRole : quint8
{
ShadowRole,
ShadowFillRole,
Expand Down

0 comments on commit 4e6ee36

Please sign in to comment.