From c633fd5ff6c2e16888feb174078648969faeefca Mon Sep 17 00:00:00 2001 From: consti10 Date: Fri, 17 Nov 2023 10:56:05 +0100 Subject: [PATCH] add hide mouse feature --- app/util/mousehelper.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/util/mousehelper.h b/app/util/mousehelper.h index f65a8d44e..c769c83a8 100644 --- a/app/util/mousehelper.h +++ b/app/util/mousehelper.h @@ -16,14 +16,13 @@ class MouseHelper : public QObject public: static MouseHelper& instance(); explicit MouseHelper(); - - void init_from_settings(); // update when settings change Q_INVOKABLE void set_active_cursor_type_and_scale(const int cursor_type,const int cursor_scale); // Enable / disable auto hide Q_INVOKABLE void set_hide_cursor_inactive_enable(bool enable); private: - const int m_inactivity_duration_msec=3000; + void init_from_settings(); + const int m_inactivity_duration_msec=2000; QTimer m_timer; int m_cursor_type=0; int m_cursor_scale=1;