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
00077565
Commit
00077565
authored
Aug 11, 2010
by
Max-Wilhelm Bruker
Browse files
minor table layout bugfix
parent
58e803c3
Changes
3
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/player.cpp
View file @
00077565
...
@@ -254,6 +254,7 @@ void Player::rearrangeZones()
...
@@ -254,6 +254,7 @@ void Player::rearrangeZones()
table
->
setPos
(
base
);
table
->
setPos
(
base
);
}
}
hand
->
updateOrientation
();
hand
->
updateOrientation
();
table
->
reorganizeCards
();
updateBoundingRect
();
updateBoundingRect
();
rearrangeCounters
();
rearrangeCounters
();
}
}
...
...
cockatrice/src/tablezone.cpp
View file @
00077565
...
@@ -43,7 +43,7 @@ void TableZone::paint(QPainter *painter, const QStyleOptionGraphicsItem */*optio
...
@@ -43,7 +43,7 @@ void TableZone::paint(QPainter *painter, const QStyleOptionGraphicsItem */*optio
else
else
painter
->
fillRect
(
boundingRect
(),
QBrush
(
bgPixmap
));
painter
->
fillRect
(
boundingRect
(),
QBrush
(
bgPixmap
));
painter
->
setPen
(
QColor
(
255
,
255
,
255
,
40
));
painter
->
setPen
(
QColor
(
255
,
255
,
255
,
40
));
qreal
separatorY
=
3
*
(
CARD_HEIGHT
+
paddingY
)
-
paddingY
/
2
;
qreal
separatorY
=
3
*
(
CARD_HEIGHT
+
paddingY
)
+
boxLineWidth
-
paddingY
/
2
;
if
(
player
->
getMirrored
())
if
(
player
->
getMirrored
())
separatorY
=
height
-
separatorY
;
separatorY
=
height
-
separatorY
;
painter
->
drawLine
(
QPointF
(
0
,
separatorY
),
QPointF
(
width
,
separatorY
));
painter
->
drawLine
(
QPointF
(
0
,
separatorY
),
QPointF
(
width
,
separatorY
));
...
...
common/server_game.cpp
View file @
00077565
...
@@ -137,7 +137,7 @@ void Server_Game::startGameIfReady()
...
@@ -137,7 +137,7 @@ void Server_Game::startGameIfReady()
query.exec();
query.exec();
}
}
*/
*/
setActivePlayer
(
0
);
setActivePlayer
(
players
.
keys
().
first
()
);
}
}
void
Server_Game
::
stopGameIfFinished
()
void
Server_Game
::
stopGameIfFinished
()
...
...
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