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
+3 -2
View File
@@ -67,6 +67,7 @@ SplitHeader::SplitHeader(Split *_split)
// ---- misc
this->layout()->setMargin(0);
this->themeRefreshEvent();
this->scaleChangedEvent(this->getScale());
this->updateChannelText();
@@ -133,9 +134,9 @@ void SplitHeader::initializeChannelSignals()
}
}
void SplitHeader::resizeEvent(QResizeEvent *event)
void SplitHeader::scaleChangedEvent(float scale)
{
int w = 28 * getScale();
int w = 28 * scale;
this->setFixedHeight(w);
this->dropdownButton->setFixedWidth(w);