chore: src/gui/Action initilize items in class when possible

This commit is contained in:
sithlord48 2024-11-27 08:54:23 -05:00 committed by Chris Rizzitello
parent 48e357f111
commit 1d43e7c626
2 changed files with 7 additions and 15 deletions

View file

@ -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)
{
}

View file

@ -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[];