mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-16 15:32:15 -07:00
Why does the linter need to be run twice?
This commit is contained in:
parent
a630c985b0
commit
bcd750e392
1 changed files with 5 additions and 3 deletions
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue