Change mouse cursor when hovering over card name
This commit is contained in:
parent
cf95e5f328
commit
51f9f34e8b
1 changed files with 5 additions and 2 deletions
|
@ -410,9 +410,12 @@ QString MessageLogWidget::getCardNameUnderMouse(const QPoint &pos) const
|
|||
void MessageLogWidget::mouseMoveEvent(QMouseEvent *event)
|
||||
{
|
||||
QString cardName = getCardNameUnderMouse(event->pos());
|
||||
if (!cardName.isEmpty())
|
||||
if (!cardName.isEmpty()) {
|
||||
viewport()->setCursor(Qt::PointingHandCursor);
|
||||
emit cardNameHovered(cardName);
|
||||
|
||||
} else
|
||||
viewport()->setCursor(Qt::IBeamCursor);
|
||||
|
||||
QTextEdit::mouseMoveEvent(event);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue