Merge pull request #5748 from nitrousox1de/hide-mouse-delay-fullscreen

Hide mouse delay fullscreen
This commit is contained in:
Leo Lam
2017-08-11 17:34:46 +08:00
committed by GitHub
6 changed files with 50 additions and 2 deletions

View File

@ -7,6 +7,8 @@
#include <QEvent>
#include <QWidget>
class QTimer;
class RenderWidget final : public QWidget
{
Q_OBJECT
@ -23,5 +25,9 @@ signals:
void StateChanged(bool fullscreen);
private:
void HandleCursorTimer();
void OnHideCursorChanged();
static constexpr int MOUSE_HIDE_DELAY = 3000;
QTimer* m_mouse_timer;
};