qt: Scale icons based on screen DPI
This commit is contained in:
@@ -415,6 +415,8 @@ MainWindow::MainWindow(QWidget *parent) :
|
||||
});
|
||||
}
|
||||
#endif
|
||||
|
||||
ui->toolBar->setIconSize(QSize(16 * screen()->devicePixelRatio(), 16 * screen()->devicePixelRatio()));
|
||||
}
|
||||
|
||||
void MainWindow::closeEvent(QCloseEvent *event) {
|
||||
|
Reference in New Issue
Block a user