fix: get rid of duplicate scale events (#5404)

This commit is contained in:
nerix
2024-05-19 11:11:51 +02:00
committed by GitHub
parent 869562263f
commit 8689bdb481
9 changed files with 55 additions and 26 deletions
+6 -4
View File
@@ -71,7 +71,7 @@ public:
void hideTabXChanged();
void growWidth(int width);
int normalTabWidth();
int normalTabWidth() const;
protected:
void themeChangedEvent() override;
@@ -100,11 +100,13 @@ protected:
private:
void showRenameDialog();
bool hasXButton();
bool shouldDrawXButton();
QRect getXRect();
bool hasXButton() const;
bool shouldDrawXButton() const;
QRect getXRect() const;
void titleUpdated();
int normalTabWidthForHeight(int height) const;
QPropertyAnimation positionChangedAnimation_;
bool positionChangedAnimationRunning_ = false;
QPoint positionAnimationDesiredPoint_;