mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-07-13 16:43:44 -07:00
Hide Mouse after Timeout in Qt GUI
This commit is contained in:
parent
4f60ceb1d4
commit
a3ae9d4f74
3 changed files with 36 additions and 4 deletions
|
@ -59,6 +59,8 @@ class AVOpenGLWidget: public QOpenGLWidget
|
|||
AVOpenGLFrameUploader *frame_uploader;
|
||||
QThread *frame_uploader_thread;
|
||||
|
||||
QTimer *mouse_timer;
|
||||
|
||||
public:
|
||||
static QSurfaceFormat CreateSurfaceFormat();
|
||||
|
||||
|
@ -69,8 +71,15 @@ class AVOpenGLWidget: public QOpenGLWidget
|
|||
AVOpenGLFrame *GetBackgroundFrame() { return &frames[1 - frame_fg]; }
|
||||
|
||||
protected:
|
||||
void mouseMoveEvent(QMouseEvent *event) override;
|
||||
|
||||
void initializeGL() override;
|
||||
void paintGL() override;
|
||||
|
||||
private slots:
|
||||
void ResetMouseTimeout();
|
||||
public slots:
|
||||
void HideMouse();
|
||||
};
|
||||
|
||||
#endif // CHIAKI_AVOPENGLWIDGET_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue