From 132350f8c5161a5daf4f202ac02cb5f4c0463915 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 12 Oct 2018 17:02:00 +0200 Subject: variant/trackmouse: copy-paste from default on short notice --- logic/main-settings.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'logic/main-settings.cpp') 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 -- cgit v1.2.3