fixed titlebar scaling

This commit is contained in:
fourtf
2018-01-25 21:11:14 +01:00
parent ac6cbe9daf
commit 56a7b05103
7 changed files with 64 additions and 19 deletions
+9 -1
View File
@@ -23,9 +23,16 @@ public:
singletons::ThemeManager &themeManager;
float getScale() const;
pajlada::Signals::Signal<float> scaleChanged;
QSize getScaleIndependantSize() const;
int getScaleIndependantWidth() const;
int getScaleIndependantHeight() const;
void setScaleIndependantSize(int width, int height);
void setScaleIndependantSize(QSize);
void setScaleIndependantWidth(int value);
void setScaleIndependantHeight(int value);
protected:
virtual void childEvent(QChildEvent *) override;
@@ -37,6 +44,7 @@ protected:
private:
void init();
float scale = 1.f;
QSize scaleIndependantSize;
std::vector<BaseWidget *> widgets;