Merge pull request #2071 from Cacodemon345/newqt

qt: Scale icons based on screen DPI
This commit is contained in:
Miran Grča
2022-02-08 20:04:06 +01:00
committed by GitHub

View File

@@ -415,6 +415,8 @@ MainWindow::MainWindow(QWidget *parent) :
});
}
#endif
ui->toolBar->setIconSize(QSize(16 * screen()->devicePixelRatio(), 16 * screen()->devicePixelRatio()));
}
void MainWindow::closeEvent(QCloseEvent *event) {