Commit 51f9f34e authored by Max-Wilhelm Bruker's avatar Max-Wilhelm Bruker
Browse files

Change mouse cursor when hovering over card name

parent cf95e5f3
......@@ -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);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment