qt: Scale icons based on screen DPI

This commit is contained in:
Cacodemon345
2022-02-09 00:47:05 +06:00
parent dd83bdb0f6
commit cbd7ae90d7

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) {