diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-10-12 17:02:00 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-10-12 17:08:58 +0000 |
commit | 132350f8c5161a5daf4f202ac02cb5f4c0463915 (patch) | |
tree | 9a2048f17961d166bd511392143bde6bad5bbf05 /logic/main-settings.cpp | |
parent | 7d1905251c12c27d7bc2caed03169b6a0fd9f83d (diff) |
variant/trackmouse: copy-paste from default on short notice
Diffstat (limited to 'logic/main-settings.cpp')
-rw-r--r-- | logic/main-settings.cpp | 15 |
1 files changed, 15 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 |