![]() |
LeechCraft
%{LEECHCRAFT_VERSION}
Modular cross-platform feature rich live environment.
|
ToolTip for Qml objects. More...
#include "tooltipitem.h"
Inheritance diagram for LeechCraft::Util::ToolTipItem:
Collaboration diagram for LeechCraft::Util::ToolTipItem:Public Slots | |
| void | showToolTip () |
Signals | |
| void | textChanged () |
| void | containsMouseChanged () |
Public Member Functions | |
| ToolTipItem (QDeclarativeItem *parent=0) | |
| void | SetText (const QString &text) |
| QString | GetText () const |
| bool | ContainsMouse () const |
| void | ShowToolTip (const QString &text) const |
Protected Member Functions | |
| void | hoverEnterEvent (QGraphicsSceneHoverEvent *event) |
| void | hoverLeaveEvent (QGraphicsSceneHoverEvent *event) |
ToolTip for Qml objects.
Using the tooltip is pretty easy. First of all register tooltip in your widget:
Then in yout qml import this widget:
And now you can use tooltip:
Definition at line 71 of file tooltipitem.h.
| LeechCraft::Util::ToolTipItem::ToolTipItem | ( | QDeclarativeItem * | parent = 0 | ) |
Definition at line 38 of file tooltipitem.cpp.
References showToolTip().
Here is the call graph for this function:| bool LeechCraft::Util::ToolTipItem::ContainsMouse | ( | ) | const |
Definition at line 65 of file tooltipitem.cpp.
|
signal |
| QString LeechCraft::Util::ToolTipItem::GetText | ( | ) | const |
Definition at line 60 of file tooltipitem.cpp.
|
protected |
Definition at line 75 of file tooltipitem.cpp.
References containsMouseChanged().
|
protected |
Definition at line 83 of file tooltipitem.cpp.
References containsMouseChanged().
| void LeechCraft::Util::ToolTipItem::SetText | ( | const QString & | text | ) |
Definition at line 51 of file tooltipitem.cpp.
References textChanged().
| void LeechCraft::Util::ToolTipItem::ShowToolTip | ( | const QString & | text | ) | const |
Definition at line 70 of file tooltipitem.cpp.
Referenced by showToolTip().
Here is the caller graph for this function:
|
slot |
Definition at line 91 of file tooltipitem.cpp.
References ShowToolTip().
Referenced by ToolTipItem().
Here is the call graph for this function:
Here is the caller graph for this function:
|
signal |