Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
51f9f34e
Commit
51f9f34e
authored
Oct 16, 2010
by
Max-Wilhelm Bruker
Browse files
Change mouse cursor when hovering over card name
parent
cf95e5f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/messagelogwidget.cpp
View file @
51f9f34e
...
...
@@ -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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment