mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 16:24:45 -07:00
miscellaneous refactors (#4521)
This commit is contained in:
parent
994704d353
commit
ae9b8b8f34
8 changed files with 32 additions and 50 deletions
|
|
@ -2615,15 +2615,6 @@ void Player::clearArrows()
|
|||
void Player::rearrangeCounters()
|
||||
{
|
||||
qreal marginTop = 80;
|
||||
|
||||
// Determine total height of bounding rectangles
|
||||
qreal totalHeight = 0;
|
||||
for (const auto &counter : counters) {
|
||||
if (counter->getShownInCounterArea()) {
|
||||
totalHeight += counter->boundingRect().height();
|
||||
}
|
||||
}
|
||||
|
||||
const qreal padding = 5;
|
||||
qreal ySize = boundingRect().y() + marginTop;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue