ui: Fixed icon sizes when scaling to highDPI screens fails

* Fixed gcc compile error
This commit is contained in:
Eberhard Graether
2017-11-25 18:21:19 +01:00
parent 2b7349bf9b
commit bfc7a55f70
12 changed files with 43 additions and 7 deletions
+6
View File
@@ -148,4 +148,10 @@ void QtUndoRedo::refreshStyle()
ResourcePaths::getGuiPath().str() + "undoredo_view/images/history.png",
"search/button"
));
int iconSize = int(height / 4) * 2 + 2;
m_undoButton->setIconSize(QSize(iconSize, iconSize));
m_redoButton->setIconSize(QSize(iconSize, iconSize));
m_historyButton->setIconSize(QSize(iconSize, iconSize));
}