Workspace 6.21.5
|
#include <Workspace/Presentation/workspacetooltip.h>
Inherits QFrame.
Public Member Functions | |
WorkspaceToolTip (QWidget *parent=nullptr) | |
~WorkspaceToolTip () override | |
QString | getText () const |
void | notifyMousePosition (const QPoint &mousePos) |
void | setText (const QString &text) |
Protected Member Functions | |
virtual void | enterEvent (QMouseEvent *event) |
virtual void | leaveEvent (QMouseEvent *event) |
void | mouseMoveEvent (QMouseEvent *event) override |
Custom tool tip widget designed to follow the mouse cursor. It's up to client widgets to inform the tool tip widget of the cursor's global position on each mouse hover event and to. Client widgets will also need to clear the tool tip widget on mouse leave events to ensure it is hidden when no longer needed.
WorkspaceToolTip | ( | QWidget * | parent = nullptr | ) |
|
overridedefault |
|
protectedvirtual |
QString getText | ( | ) | const |
|
protectedvirtual |
|
overrideprotected |
void notifyMousePosition | ( | const QPoint & | mousePos | ) |
void setText | ( | const QString & | text | ) |