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
a3f6addd
Commit
a3f6addd
authored
Jul 11, 2009
by
Max-Wilhelm Bruker
Browse files
improved last commit
parent
44c64322
Changes
3
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/carddatabase.h
View file @
a3f6addd
...
...
@@ -34,7 +34,6 @@ public:
class
CardInfo
{
private:
class
SetCompareFunctor
;
CardDatabase
*
db
;
QString
name
;
...
...
cockatrice/src/carditem.cpp
View file @
a3f6addd
...
...
@@ -189,12 +189,13 @@ void CardItem::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event)
if
(
!
zone
->
getPlayer
()
->
getLocal
())
return
;
if
(
zone
->
getName
()
==
"hand"
)
{
if
(
zone
->
getName
()
==
"table"
)
((
TableZone
*
)
zone
)
->
toggleTapped
();
else
{
TableZone
*
table
=
(
TableZone
*
)
zone
->
getPlayer
()
->
getZones
()
->
findZone
(
"table"
);
QPoint
gridPoint
=
table
->
getFreeGridPoint
(
info
->
getTableRow
());
table
->
handleDropEvent
(
id
,
zone
,
table
->
mapFromGrid
(
gridPoint
).
toPoint
(),
false
);
}
else
if
(
zone
->
getName
()
==
"table"
)
((
TableZone
*
)
zone
)
->
toggleTapped
();
}
}
void
CardItem
::
hoverEnterEvent
(
QGraphicsSceneHoverEvent
*
event
)
...
...
@@ -203,11 +204,6 @@ void CardItem::hoverEnterEvent(QGraphicsSceneHoverEvent *event)
QGraphicsItem
::
hoverEnterEvent
(
event
);
}
void
CardItem
::
hoverLeaveEvent
(
QGraphicsSceneHoverEvent
*
event
)
{
QGraphicsItem
::
hoverLeaveEvent
(
event
);
}
QVariant
CardItem
::
itemChange
(
QGraphicsItem
::
GraphicsItemChange
change
,
const
QVariant
&
value
)
{
if
(
change
==
ItemSelectedChange
)
{
...
...
cockatrice/src/carditem.h
View file @
a3f6addd
...
...
@@ -69,7 +69,6 @@ protected:
void
mouseReleaseEvent
(
QGraphicsSceneMouseEvent
*
event
);
void
mouseDoubleClickEvent
(
QGraphicsSceneMouseEvent
*
event
);
void
hoverEnterEvent
(
QGraphicsSceneHoverEvent
*
event
);
void
hoverLeaveEvent
(
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