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
b106f762
Commit
b106f762
authored
May 09, 2012
by
Max-Wilhelm Bruker
Browse files
Merge branch 'devel' of
git://github.com/mbruker/Cockatrice
into devel
parents
0eee6d7a
c043fe3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/playertarget.cpp
View file @
b106f762
...
...
@@ -138,9 +138,11 @@ void PlayerTarget::paint(QPainter *painter, const QStyleOptionGraphicsItem * /*o
AbstractCounter
*
PlayerTarget
::
addCounter
(
int
_counterId
,
const
QString
&
_name
,
int
_value
)
{
if
(
playerCounter
)
return
0
;
if
(
playerCounter
)
{
disconnect
(
playerCounter
,
0
,
this
,
0
);
playerCounter
->
delCounter
();
}
playerCounter
=
new
PlayerCounter
(
owner
,
_counterId
,
_name
,
_value
,
this
);
playerCounter
->
setPos
(
boundingRect
().
width
()
-
playerCounter
->
boundingRect
().
width
(),
boundingRect
().
height
()
-
playerCounter
->
boundingRect
().
height
());
connect
(
playerCounter
,
SIGNAL
(
destroyed
()),
this
,
SLOT
(
counterDeleted
()));
...
...
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