refactor: ActionDialog::ActionType enum is now a struct
This commit is contained in:
committed by
Chris Rizzitello
parent
7fd9070a80
commit
a88a67d47f
@ -24,15 +24,15 @@ class ActionDialog : public QDialog
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
enum ActionTypes
|
struct ActionTypes
|
||||||
{
|
{
|
||||||
PressKey,
|
inline static const auto PressKey = 0;
|
||||||
ReleaseKey,
|
inline static const auto ReleaseKey = 1;
|
||||||
ToggleKey,
|
inline static const auto ToggleKey = 2;
|
||||||
SwitchTo,
|
inline static const auto SwitchTo = 3;
|
||||||
SwitchInDirection,
|
inline static const auto SwitchInDirection = 4;
|
||||||
ModifyCursorLock,
|
inline static const auto ModifyCursorLock = 5;
|
||||||
RestartServer
|
inline static const auto RestartServer = 6;
|
||||||
};
|
};
|
||||||
|
|
||||||
ActionDialog(QWidget *parent, const ServerConfig &config, Hotkey &hotkey, Action &action);
|
ActionDialog(QWidget *parent, const ServerConfig &config, Hotkey &hotkey, Action &action);
|
||||||
|
|||||||
Reference in New Issue
Block a user