summaryrefslogtreecommitdiffhomepage
path: root/logic
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-10-12 17:02:00 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-10-12 17:08:58 +0000
commit132350f8c5161a5daf4f202ac02cb5f4c0463915 (patch)
tree9a2048f17961d166bd511392143bde6bad5bbf05 /logic
parent7d1905251c12c27d7bc2caed03169b6a0fd9f83d (diff)
variant/trackmouse: copy-paste from default on short notice
Diffstat (limited to 'logic')
-rw-r--r--logic/main-settings.cpp15
-rw-r--r--logic/main-settings.hpp1
2 files changed, 16 insertions, 0 deletions
diff --git a/logic/main-settings.cpp b/logic/main-settings.cpp
index 53a5054c..901e1845 100644
--- a/logic/main-settings.cpp
+++ b/logic/main-settings.cpp
@@ -1,5 +1,7 @@
#include "main-settings.hpp"
+namespace main_settings_impl {
+
using namespace options;
main_settings::main_settings() :
@@ -61,3 +63,16 @@ key_opts::key_opts(bundle b, const QString& name) :
button(b, QString("button-%1").arg(name), -1)
{}
+key_opts& key_opts::operator=(const key_opts& x)
+{
+ if (&x != this)
+ {
+ keycode = x.keycode();
+ guid = x.guid();
+ button = x.button();
+ }
+
+ return *this;
+}
+
+} // ns main_settings_impl
diff --git a/logic/main-settings.hpp b/logic/main-settings.hpp
index b7a9fdce..41edf3e6 100644
--- a/logic/main-settings.hpp
+++ b/logic/main-settings.hpp
@@ -32,6 +32,7 @@ struct OTR_LOGIC_EXPORT key_opts
value<int> button;
key_opts(bundle b, const QString& name);
+ key_opts& operator=(const key_opts& x);
};
struct OTR_LOGIC_EXPORT module_settings