miscellaneous refactors (#4521)

This commit is contained in:
ebbit1q 2022-01-16 23:58:53 +01:00 committed by GitHub
parent 994704d353
commit ae9b8b8f34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 32 additions and 50 deletions

View file

@ -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;