summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/widgets/setuptouchitem.cpp30
-rw-r--r--src/gui/widgets/setuptouchitem.h24
2 files changed, 29 insertions, 25 deletions
diff --git a/src/gui/widgets/setuptouchitem.cpp b/src/gui/widgets/setuptouchitem.cpp
index d8d6eda9a..58a34de45 100644
--- a/src/gui/widgets/setuptouchitem.cpp
+++ b/src/gui/widgets/setuptouchitem.cpp
@@ -89,12 +89,14 @@ int TouchActionsModel::getSelectionFromAction(const int action) const
}
-SetupActionDropDown::SetupActionDropDown(const std::string &text,
- const std::string &description,
- const std::string &keyName,
- SetupTabScroll *const parent,
- const std::string &eventName,
- TouchActionsModel *const model,
+SetupActionDropDown::SetupActionDropDown(const std::string &restrict text,
+ const std::string &restrict
+ description,
+ const std::string &restrict keyName,
+ SetupTabScroll *restrict const parent,
+ const std::string &restrict eventName,
+ TouchActionsModel *restrict
+ const model,
const int width,
const bool mainConfig) :
SetupItem(text, description, keyName, parent, eventName, mainConfig),
@@ -108,14 +110,16 @@ SetupActionDropDown::SetupActionDropDown(const std::string &text,
createControls();
}
-SetupActionDropDown::SetupActionDropDown(const std::string &text,
- const std::string &description,
- const std::string &keyName,
- SetupTabScroll *const parent,
- const std::string &eventName,
- TouchActionsModel *const model,
+SetupActionDropDown::SetupActionDropDown(const std::string &restrict text,
+ const std::string &restrict
+ description,
+ const std::string &restrict keyName,
+ SetupTabScroll *restrict const parent,
+ const std::string &restrict eventName,
+ TouchActionsModel *restrict
+ const model,
const int width,
- const std::string &def,
+ const std::string &restrict def,
const bool mainConfig) :
SetupItem(text, description, keyName, parent, eventName, def, mainConfig),
mHorizont(nullptr),
diff --git a/src/gui/widgets/setuptouchitem.h b/src/gui/widgets/setuptouchitem.h
index 285e0e02f..65ad48642 100644
--- a/src/gui/widgets/setuptouchitem.h
+++ b/src/gui/widgets/setuptouchitem.h
@@ -46,20 +46,20 @@ class TouchActionsModel final : public NamesModel
class SetupActionDropDown final : public SetupItem
{
public:
- SetupActionDropDown(const std::string &text,
- const std::string &description,
- const std::string &keyName,
- SetupTabScroll *const parent,
- const std::string &eventName,
- TouchActionsModel *const model,
+ SetupActionDropDown(const std::string &restrict text,
+ const std::string &restrict description,
+ const std::string &restrict keyName,
+ SetupTabScroll *restrict const parent,
+ const std::string &restrict eventName,
+ TouchActionsModel *restrict const model,
const int width, const bool mainConfig = true);
- SetupActionDropDown(const std::string &text,
- const std::string &description,
- const std::string &keyName,
- SetupTabScroll *const parent,
- const std::string &eventName,
- TouchActionsModel *const model,
+ SetupActionDropDown(const std::string &restrict text,
+ const std::string &restrict description,
+ const std::string &restrict keyName,
+ SetupTabScroll *restrict const parent,
+ const std::string &restrict eventName,
+ TouchActionsModel *restrict const model,
const int width, const std::string &def,
const bool mainConfig = true);