diff options
Diffstat (limited to 'src/widget/tooltipqopengl.h')
-rw-r--r-- | src/widget/tooltipqopengl.h | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/widget/tooltipqopengl.h b/src/widget/tooltipqopengl.h index 05777cfe76..ff5d817916 100644 --- a/src/widget/tooltipqopengl.h +++ b/src/widget/tooltipqopengl.h @@ -10,18 +10,20 @@ class WGLWidget; // singleton mimics the standard tooltip behaviour for them. class ToolTipQOpenGL : public QObject { Q_OBJECT - - bool m_active{true}; - QTimer m_timer; - QPoint m_pos{}; - WGLWidget* m_widget{}; - ToolTipQOpenGL(); - public: static ToolTipQOpenGL& singleton(); void setActive(bool active); - void start(WGLWidget* widget, QPoint pos); - void stop(WGLWidget* widget); + void start(WGLWidget* pWidget, QPoint pos); + void stop(); + private slots: void onTimeout(); + + private: + ToolTipQOpenGL(); + + bool m_active; + QTimer m_timer; + QPoint m_pos; + WGLWidget* m_pWidget; }; |