diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-10-27 06:30:57 +0000 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-10-27 10:53:21 +0000 |
commit | fff6c5d9b7dce04eaee2b3639f2711d70b7bf6e1 (patch) | |
tree | 1ea06b4e33b1337bcbd0ce84ebeac33a73179138 /variant/trackmouse/window.hpp | |
parent | de08c69d0c66f06bd165e3b6bd63b71ac83db9a9 (diff) |
trackmouse: connect slider to mouse sensitivity
Diffstat (limited to 'variant/trackmouse/window.hpp')
-rw-r--r-- | variant/trackmouse/window.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/variant/trackmouse/window.hpp b/variant/trackmouse/window.hpp index af3a3043..dc335148 100644 --- a/variant/trackmouse/window.hpp +++ b/variant/trackmouse/window.hpp @@ -10,6 +10,8 @@ #pragma once +#include "proto-mouse/mouse-settings.hpp" + #include "api/plugin-support.hpp" #include "logic/main-settings.hpp" #include "logic/pipeline.hpp" @@ -36,13 +38,17 @@ class main_window final : public QMainWindow, private State Ui::window ui; + QTimer save_settings_timer { this }; + Shortcuts global_shortcuts; module_settings m; + mouse_settings mouse; QShortcut kbd_quit { QKeySequence("Ctrl+Q"), this }; std::unique_ptr<IFilterDialog> pFilterDialog; std::unique_ptr<IProtocolDialog> pProtocolDialog; std::unique_ptr<ITrackerDialog> pTrackerDialog; + bool exiting_already { false }; using dylib_ptr = Modules::dylib_ptr; using dylib_list = Modules::dylib_list; @@ -65,6 +71,8 @@ class main_window final : public QMainWindow, private State bool maybe_die_on_config_not_writable(const QString& current); void die_on_config_not_writable(); + static constexpr inline int save_settings_interval_ms = 2500; + private slots: void save_modules(); void exit(int status = EXIT_SUCCESS); |