chore: src/gui/Action initilize items in class when possible
This commit is contained in:
parent
48e357f111
commit
1d43e7c626
2 changed files with 7 additions and 15 deletions
|
|
@ -30,14 +30,6 @@ const char *Action::m_SwitchDirectionNames[] = {"left", "right", "up", "down"};
|
|||
const char *Action::m_LockCursorModeNames[] = {"toggle", "on", "off"};
|
||||
|
||||
Action::Action()
|
||||
: m_KeySequence(),
|
||||
m_Type(keystroke),
|
||||
m_TypeScreenNames(),
|
||||
m_SwitchScreenName(),
|
||||
m_SwitchDirection(switchLeft),
|
||||
m_LockCursorMode(lockCursorToggle),
|
||||
m_ActiveOnRelease(false),
|
||||
m_HasScreens(false)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -151,13 +151,13 @@ protected:
|
|||
|
||||
private:
|
||||
KeySequence m_KeySequence;
|
||||
int m_Type;
|
||||
QStringList m_TypeScreenNames;
|
||||
QString m_SwitchScreenName;
|
||||
int m_SwitchDirection;
|
||||
int m_LockCursorMode;
|
||||
bool m_ActiveOnRelease;
|
||||
bool m_HasScreens;
|
||||
int m_Type = keystroke;
|
||||
QStringList m_TypeScreenNames = QStringList();
|
||||
QString m_SwitchScreenName = QString();
|
||||
int m_SwitchDirection = switchLeft;
|
||||
int m_LockCursorMode = lockCursorToggle;
|
||||
bool m_ActiveOnRelease = false;
|
||||
bool m_HasScreens = false;
|
||||
bool m_restartServer;
|
||||
|
||||
static const char *m_ActionTypeNames[];
|
||||
|
|
|
|||
Loading…
Reference in a new issue