1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Merge remote-tracking branch 'antis81/chat/fix-mouse-crsr'

This commit is contained in:
agilob 2015-12-30 21:40:19 +00:00
commit 7f34290129
No known key found for this signature in database
GPG Key ID: 296F0B764741106C
2 changed files with 4 additions and 4 deletions

View File

@ -220,10 +220,10 @@ void Text::hoverMoveEvent(QGraphicsSceneHoverEvent *event)
QString anchor = doc->documentLayout()->anchorAt(event->pos());
if (!anchor.isEmpty())
setCursor(QCursor(Qt::PointingHandCursor));
if (anchor.isEmpty())
setCursor(Qt::IBeamCursor);
else
setCursor(QCursor());
setCursor(Qt::PointingHandCursor);
// tooltip
setToolTip(extractImgTooltip(cursorFromPos(event->scenePos(), false)));

View File

@ -54,7 +54,7 @@ public:
virtual qreal getAscent() const final;
virtual void mousePressEvent(QGraphicsSceneMouseEvent *event) final override;
virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event) final override;
virtual void hoverMoveEvent(QGraphicsSceneHoverEvent* event) final override;
void hoverMoveEvent(QGraphicsSceneHoverEvent* event) final override;
virtual QString getText() const final;