qt: Scale toolbar/statusbar icons only on Windows

This commit is contained in:
Cacodemon345
2022-02-09 01:37:43 +06:00
parent accd4ca398
commit 3f1d638a46

View File

@@ -416,8 +416,10 @@ MainWindow::MainWindow(QWidget *parent) :
}
#endif
#ifdef _WIN32
ui->toolBar->setIconSize(QSize(16 * screen()->devicePixelRatio(), 16 * screen()->devicePixelRatio()));
ui->statusbar->resize(ui->statusbar->width(), ui->statusbar->sizeHint().height() * screen()->devicePixelRatio());
#endif
}
void MainWindow::closeEvent(QCloseEvent *event) {