Improved consistency and added missing newlines at end of files

This commit is contained in:
DawnFire42 2026-03-05 21:38:45 -05:00
parent f24b2d54a9
commit fb8c42e69d
No known key found for this signature in database
GPG key ID: 24BB855EE2911B33
3 changed files with 6 additions and 6 deletions

View file

@ -219,4 +219,4 @@ void PlayerGraphicsItem::updateBoundingRect()
playerArea->setSize(CardDimensions::HEIGHT_F + counterAreaWidth + 15, bRect.height()); playerArea->setSize(CardDimensions::HEIGHT_F + counterAreaWidth + 15, bRect.height());
emit sizeChanged(); emit sizeChanged();
} }

View file

@ -19,9 +19,9 @@ PileZone::PileZone(PileZoneLogic *_logic, QGraphicsItem *parent) : CardZone(_log
setCursor(Qt::OpenHandCursor); setCursor(Qt::OpenHandCursor);
setTransform(QTransform() setTransform(QTransform()
.translate(CardDimensions::WIDTH_F / 2, CardDimensions::HEIGHT_F / 2) .translate(CardDimensions::WIDTH_HALF_F, CardDimensions::HEIGHT_HALF_F)
.rotate(90) .rotate(90)
.translate(-CardDimensions::WIDTH_F / 2, -CardDimensions::HEIGHT_F / 2)); .translate(-CardDimensions::WIDTH_HALF_F, -CardDimensions::HEIGHT_HALF_F));
connect(&SettingsCache::instance(), &SettingsCache::roundCardCornersChanged, this, [this](bool _roundCardCorners) { connect(&SettingsCache::instance(), &SettingsCache::roundCardCornersChanged, this, [this](bool _roundCardCorners) {
Q_UNUSED(_roundCardCorners); Q_UNUSED(_roundCardCorners);
@ -52,9 +52,9 @@ void PileZone::paint(QPainter *painter, const QStyleOptionGraphicsItem * /*optio
getLogic()->getCards().at(0)->paintPicture(painter, getLogic()->getCards().at(0)->getTranslatedSize(painter), getLogic()->getCards().at(0)->paintPicture(painter, getLogic()->getCards().at(0)->getTranslatedSize(painter),
90); 90);
painter->translate(CardDimensions::WIDTH_F / 2, CardDimensions::HEIGHT_F / 2); painter->translate(CardDimensions::WIDTH_HALF_F, CardDimensions::HEIGHT_HALF_F);
painter->rotate(-90); painter->rotate(-90);
painter->translate(-CardDimensions::WIDTH_F / 2, -CardDimensions::HEIGHT_F / 2); painter->translate(-CardDimensions::WIDTH_HALF_F, -CardDimensions::HEIGHT_HALF_F);
paintNumberEllipse(getLogic()->getCards().size(), 28, Qt::white, -1, -1, painter); paintNumberEllipse(getLogic()->getCards().size(), 28, Qt::white, -1, -1, painter);
} }

View file

@ -574,4 +574,4 @@ void ZoneViewWidget::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event)
if (event->pos().y() <= 0) { if (event->pos().y() <= 0) {
expandWindow(); expandWindow();
} }
} }