summaryrefslogtreecommitdiffstats
path: root/src/gui/src/Action.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/src/Action.cpp')
-rw-r--r--src/gui/src/Action.cpp19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/gui/src/Action.cpp b/src/gui/src/Action.cpp
index 909e983..f34d1e8 100644
--- a/src/gui/src/Action.cpp
+++ b/src/gui/src/Action.cpp
@@ -2,11 +2,11 @@
* barrier -- mouse and keyboard sharing utility
* Copyright (C) 2012-2016 Symless Ltd.
* Copyright (C) 2008 Volker Lanz (vl@fidra.de)
- *
+ *
* This package is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* found in the file LICENSE that should have accompanied this file.
- *
+ *
* This package is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@@ -51,7 +51,7 @@ QString Action::text() const
* in the end but now argument inside. If you need a function with no
* argument, it can not have () in the end.
*/
- QString text = QString(m_ActionTypeNames[keySequence().isMouseButton() ?
+ QString text = QString(m_ActionTypeNames[m_KeySequence.isMouseButton() ?
type() + int(mouseDown) : type()]);
switch (type())
@@ -61,9 +61,9 @@ QString Action::text() const
case keystroke:
{
text += "(";
- text += keySequence().toString();
+ text += m_KeySequence.toString();
- if (!keySequence().isMouseButton())
+ if (!m_KeySequence.isMouseButton())
{
const QStringList& screens = typeScreenNames();
if (haveScreens() && !screens.isEmpty())
@@ -116,15 +116,15 @@ QString Action::text() const
void Action::loadSettings(QSettings& settings)
{
- keySequence().loadSettings(settings);
+ m_KeySequence.loadSettings(settings);
setType(settings.value("type", keyDown).toInt());
- typeScreenNames().clear();
+ m_TypeScreenNames.clear();
int numTypeScreens = settings.beginReadArray("typeScreenNames");
for (int i = 0; i < numTypeScreens; i++)
{
settings.setArrayIndex(i);
- typeScreenNames().append(settings.value("typeScreenName").toString());
+ m_TypeScreenNames.append(settings.value("typeScreenName").toString());
}
settings.endArray();
@@ -137,7 +137,7 @@ void Action::loadSettings(QSettings& settings)
void Action::saveSettings(QSettings& settings) const
{
- keySequence().saveSettings(settings);
+ m_KeySequence.saveSettings(settings);
settings.setValue("type", type());
settings.beginWriteArray("typeScreenNames");
@@ -164,4 +164,3 @@ QTextStream& operator<<(QTextStream& outStream, const Action& action)
return outStream;
}
-