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
7bff2044
Commit
7bff2044
authored
Nov 05, 2010
by
Max-Wilhelm Bruker
Browse files
card selection fix
parent
ae70f5f1
Changes
2
Show whitespace changes
Inline
Side-by-side
cockatrice/src/abstractcarditem.cpp
View file @
7bff2044
...
...
@@ -188,6 +188,12 @@ void AbstractCardItem::mousePressEvent(QGraphicsSceneMouseEvent *event)
event
->
accept
();
}
void
AbstractCardItem
::
mouseReleaseEvent
(
QGraphicsSceneMouseEvent
*
event
)
{
// This function ensures the parent function doesn't mess around with our selection.
event
->
accept
();
}
void
AbstractCardItem
::
processHoverEvent
()
{
emit
hovered
(
this
);
...
...
cockatrice/src/abstractcarditem.h
View file @
7bff2044
...
...
@@ -48,6 +48,7 @@ protected:
QSizeF
getTranslatedSize
(
QPainter
*
painter
)
const
;
void
transformPainter
(
QPainter
*
painter
,
const
QSizeF
&
translatedSize
);
void
mousePressEvent
(
QGraphicsSceneMouseEvent
*
event
);
void
mouseReleaseEvent
(
QGraphicsSceneMouseEvent
*
event
);
void
hoverEnterEvent
(
QGraphicsSceneHoverEvent
*
event
);
QVariant
itemChange
(
QGraphicsItem
::
GraphicsItemChange
change
,
const
QVariant
&
value
);
};
...
...
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