Why does the linter need to be run twice?

This commit is contained in:
Lukas Brübach 2025-04-17 11:34:13 +02:00
parent a630c985b0
commit bcd750e392

View file

@ -4,9 +4,9 @@
#include "../../../../game/cards/card_database.h" #include "../../../../game/cards/card_database.h"
#include "card_info_picture_enlarged_widget.h" #include "card_info_picture_enlarged_widget.h"
#include <QPropertyAnimation>
#include <QTimer> #include <QTimer>
#include <QWidget> #include <QWidget>
#include <QPropertyAnimation>
inline Q_LOGGING_CATEGORY(CardInfoPictureWidgetLog, "card_info_picture_widget"); inline Q_LOGGING_CATEGORY(CardInfoPictureWidgetLog, "card_info_picture_widget");
@ -18,7 +18,9 @@ class CardInfoPictureWidget : public QWidget
Q_OBJECT Q_OBJECT
public: 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() CardInfoPtr getInfo()
{ {
return info; return info;
@ -74,7 +76,7 @@ private:
int enlargedPixmapOffset = 10; int enlargedPixmapOffset = 10;
QTimer *hoverTimer; QTimer *hoverTimer;
QPropertyAnimation *animation; 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 const int animationOffset = 10; // Adjust this for how much the widget moves up
QMenu *createRightClickMenu(); QMenu *createRightClickMenu();