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
776d809f
Commit
776d809f
authored
Dec 09, 2014
by
Gavin Bisesi
Browse files
Merge pull request #483 from ZeldaZach/how_many_cards
How Many Cards
parents
8670bc67
b7384289
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/deckview.cpp
View file @
776d809f
...
@@ -180,9 +180,11 @@ void DeckViewCardContainer::paint(QPainter *painter, const QStyleOptionGraphicsI
...
@@ -180,9 +180,11 @@ void DeckViewCardContainer::paint(QPainter *painter, const QStyleOptionGraphicsI
qreal
thisRowHeight
=
CARD_HEIGHT
*
currentRowsAndCols
[
i
].
first
;
qreal
thisRowHeight
=
CARD_HEIGHT
*
currentRowsAndCols
[
i
].
first
;
QRectF
textRect
(
0
,
yUntilNow
,
totalTextWidth
,
thisRowHeight
);
QRectF
textRect
(
0
,
yUntilNow
,
totalTextWidth
,
thisRowHeight
);
yUntilNow
+=
thisRowHeight
+
paddingY
;
yUntilNow
+=
thisRowHeight
+
paddingY
;
QString
displayString
=
QString
(
"%1
\n
(%2)"
).
arg
(
cardTypeList
[
i
]).
arg
(
cardsByType
.
count
(
cardTypeList
[
i
]));
painter
->
setPen
(
Qt
::
white
);
painter
->
setPen
(
Qt
::
white
);
painter
->
drawText
(
textRect
,
Qt
::
AlignHCenter
|
Qt
::
AlignVCenter
|
Qt
::
TextSingleLine
,
cardTypeList
[
i
]
);
painter
->
drawText
(
textRect
,
Qt
::
AlignHCenter
|
Qt
::
AlignVCenter
,
displayString
);
}
}
}
}
...
...
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