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
View File
@@ -18,15 +18,6 @@ void TitleBarButton::setButtonStyle(Style _style)
this->update();
}
void TitleBarButton::resizeEvent(QResizeEvent *)
{
if (this->style & (Maximize | Minimize | Unmaximize | Close)) {
this->setFixedWidth(this->height() * 46 / 30);
} else {
this->setFixedWidth(this->height());
}
}
void TitleBarButton::paintEvent(QPaintEvent *)
{
QPainter painter(this);