Skip to content

Commit

Permalink
add hide mouse feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Consti10 committed Nov 17, 2023
1 parent 16a7a67 commit c633fd5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/util/mousehelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c633fd5

Please sign in to comment.