Skip to content

Commit

Permalink
more enums specified
Browse files Browse the repository at this point in the history
  • Loading branch information
uwerat committed Dec 9, 2024
1 parent 5d95913 commit 0038f6d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/controls/QskEvent.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class QKeyEvent;
class QSK_EXPORT QskEvent : public QEvent
{
public:
enum Type
enum Type : int
{
NoEvent = 53800,

Expand Down Expand Up @@ -161,7 +161,7 @@ class QSK_EXPORT QskGestureEvent : public QskEvent
class QSK_EXPORT QskAnimatorEvent : public QskEvent
{
public:
enum State
enum State : quint8
{
Started,
Terminated
Expand Down
4 changes: 2 additions & 2 deletions src/controls/QskSkinTransition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ namespace
class UpdateInfo
{
public:
enum UpdateMode
enum UpdateMode : quint8
{
Polish = 1,
Update = 2
Expand All @@ -128,7 +128,7 @@ namespace
}

QPointer< QskControl > control;
int updateModes;
quint8 updateModes = 0;
};

class HintAnimator : public QskHintAnimator
Expand Down
2 changes: 1 addition & 1 deletion src/inputpanel/QskInputPanelBox.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class QSK_EXPORT QskInputPanelBox : public QskBox
public:
QSK_SUBCONTROLS( Panel, ProxyPanel, ProxyText )

enum PanelHint
enum PanelHint : quint8
{
InputProxy = 1 << 0,
Prediction = 1 << 1
Expand Down
6 changes: 4 additions & 2 deletions src/inputpanel/QskVirtualKeyboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,19 @@ class QSK_EXPORT QskVirtualKeyboard : public QskBox
public:
QSK_SUBCONTROLS( Panel, ButtonPanel, ButtonText )

enum Mode
enum Mode : qint8
{
CurrentMode = -1,

LowercaseMode,
UppercaseMode,
SpecialCharacterMode,

ModeCount
};
Q_ENUM( Mode )

enum KeyType
enum KeyType : quint8
{
NormalType,
EnterType,
Expand Down

0 comments on commit 0038f6d

Please sign in to comment.