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
7553251b
Commit
7553251b
authored
Jun 08, 2010
by
Max-Wilhelm Bruker
Browse files
table width bugfix
parent
579628b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/player.cpp
View file @
7553251b
...
...
@@ -1002,7 +1002,10 @@ void Player::actMoveToExile(CardItem *card)
qreal
Player
::
getMinimumWidth
()
const
{
return
table
->
getMinimumWidth
()
+
CARD_WIDTH
+
5
+
counterAreaWidth
;
qreal
result
=
table
->
getMinimumWidth
()
+
CARD_WIDTH
+
5
+
counterAreaWidth
;
if
(
!
settingsCache
->
getHorizontalHand
())
result
+=
hand
->
boundingRect
().
width
();
return
result
;
}
void
Player
::
setMirrored
(
bool
_mirrored
)
...
...
@@ -1019,6 +1022,9 @@ void Player::processSceneSizeChange(const QSizeF &newSize)
qreal
fullPlayerWidth
=
newSize
.
width
();
qreal
tableWidth
=
fullPlayerWidth
-
CARD_WIDTH
-
5
-
counterAreaWidth
;
if
(
!
settingsCache
->
getHorizontalHand
())
tableWidth
-=
hand
->
boundingRect
().
width
();
table
->
setWidth
(
tableWidth
);
hand
->
setWidth
(
tableWidth
);
}
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