summaryrefslogtreecommitdiffhomepage
path: root/variant
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-12-24 19:09:14 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-12-24 19:32:11 +0100
commitc42f2596e5328c53bcf68e07b471c22aad24c1c7 (patch)
tree90924a06cb1f773e1c810dc8a4c2fa708003e1f1 /variant
parentc6049e3e27eeed83c1787478a212d101952563c8 (diff)
trackmouse: copy-paste changed code
Diffstat (limited to 'variant')
-rw-r--r--variant/trackmouse/window.cpp15
1 files changed, 9 insertions, 6 deletions
diff --git a/variant/trackmouse/window.cpp b/variant/trackmouse/window.cpp
index a1160c50..fc0c7419 100644
--- a/variant/trackmouse/window.cpp
+++ b/variant/trackmouse/window.cpp
@@ -184,9 +184,15 @@ main_window::~main_window()
if (work)
{
stop_tracker_();
- QEventLoop ev;
- ev.processEvents();
- portable::sleep(2000);
+
+ constexpr int inc = 100, max = 2000;
+
+ for (int k = 0; k < max; k += inc)
+ {
+ QEventLoop ev;
+ ev.processEvents();
+ portable::sleep(inc);
+ }
}
exit();
@@ -309,9 +315,6 @@ void main_window::stop_tracker_()
update_button_state(false, false);
set_title();
ui.btnStartTracker->setFocus();
-
- // ps3 eye issues
- portable::sleep(1000);
}
void main_window::set_title(const QString& game_title)