[CardInfoPictureWidget] Refactor constant fields to static const (#6575)

* [CardInfoPictureWidget] Refactor constant fields to static const

* rename constants

* reformat

* comment out unused
This commit is contained in:
RickyRister 2026-01-27 17:50:19 -08:00 committed by GitHub
parent 165c4ddd2a
commit 5cc5767c87
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 32 additions and 26 deletions

View file

@ -68,23 +68,17 @@ protected:
private:
ExactCard exactCard;
qreal magicTheGatheringCardAspectRatio = 1.396;
qreal yuGiOhCardAspectRatio = 1.457;
qreal aspectRatio = magicTheGatheringCardAspectRatio;
int baseWidth = 200;
int baseHeight = 200;
double scaleFactor = 100;
QPixmap resizedPixmap;
bool pixmapDirty;
bool hoverToZoomEnabled;
bool raiseOnEnter;
int hoverActivateThresholdInMs = 500;
CardInfoPictureEnlargedWidget *enlargedPixmapWidget = nullptr;
int enlargedPixmapOffset = 10;
QTimer *hoverTimer;
QPropertyAnimation *animation;
QPoint originalPos; // Store the original position
const int animationOffset = 10; // Adjust this for how much the widget moves up
QPoint originalPos; // Store the original position
QMenu *createRightClickMenu();
QMenu *createViewRelatedCardsMenu();