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:
commit
7f34290129
|
@ -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)));
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user