From bcd750e392f37009b0f2ad278c2f04205330a13b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Br=C3=BCbach?= Date: Thu, 17 Apr 2025 11:34:13 +0200 Subject: [PATCH] Why does the linter need to be run twice? --- .../client/ui/widgets/cards/card_info_picture_widget.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cockatrice/src/client/ui/widgets/cards/card_info_picture_widget.h b/cockatrice/src/client/ui/widgets/cards/card_info_picture_widget.h index e1c89b0de..e1874f890 100644 --- a/cockatrice/src/client/ui/widgets/cards/card_info_picture_widget.h +++ b/cockatrice/src/client/ui/widgets/cards/card_info_picture_widget.h @@ -4,9 +4,9 @@ #include "../../../../game/cards/card_database.h" #include "card_info_picture_enlarged_widget.h" +#include #include #include -#include inline Q_LOGGING_CATEGORY(CardInfoPictureWidgetLog, "card_info_picture_widget"); @@ -18,7 +18,9 @@ class CardInfoPictureWidget : public QWidget Q_OBJECT public: - explicit CardInfoPictureWidget(QWidget *parent = nullptr, bool hoverToZoomEnabled = false, bool raiseOnEnter = false); + explicit CardInfoPictureWidget(QWidget *parent = nullptr, + bool hoverToZoomEnabled = false, + bool raiseOnEnter = false); CardInfoPtr getInfo() { return info; @@ -74,7 +76,7 @@ private: int enlargedPixmapOffset = 10; QTimer *hoverTimer; QPropertyAnimation *animation; - QPoint originalPos; // Store the original position + QPoint originalPos; // Store the original position const int animationOffset = 10; // Adjust this for how much the widget moves up QMenu *createRightClickMenu();