33 #if QT_VERSION < 0x050000
34 #include <QDeclarativeItem>
77 #if QT_VERSION < 0x050000
87 Q_PROPERTY (QString text READ GetText WRITE SetText NOTIFY textChanged)
91 Q_PROPERTY (
bool containsMouse READ ContainsMouse NOTIFY containsMouseChanged)
95 bool ContainsMouse_ = false;
101 #if QT_VERSION < 0x050000
113 void SetText (
const QString& text);
121 QString GetText ()
const;
127 bool ContainsMouse ()
const;
134 void ShowToolTip (
const QString& text)
const;
136 #if QT_VERSION < 0x050000
137 void hoverEnterEvent (QGraphicsSceneHoverEvent*)
override;
138 void hoverLeaveEvent (QGraphicsSceneHoverEvent*)
override;
140 void hoverEnterEvent (QHoverEvent*)
override;
141 void hoverLeaveEvent (QHoverEvent*)
override;
154 void containsMouseChanged ();