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
+5
View File
@@ -111,6 +111,11 @@ void QtSearchBar::refreshStyle()
"search/button"
));
int iconSize = int((m_searchBox->height() + 5) / 4) * 2 + 2;
m_searchButton->setIconSize(QSize(iconSize, iconSize));
m_homeButton->setIconSize(QSize(iconSize, iconSize));
m_searchBox->refreshStyle();
}