If plain widget (eg. spacer) then add 4 pixels

This commit is contained in:
Craig Drummond
2018-05-26 16:07:35 +01:00
parent 5004d6f1f0
commit 1f62bbd763

View File

@@ -117,7 +117,11 @@ void Application::fixSize(QWidget *widget)
// than the rest - due to genre combo?
widget->setFixedHeight(fixedHeight+(2*widget->style()->pixelMetric(QStyle::PM_FocusFrameHMargin)));
#else
widget->setFixedHeight(fixedHeight);
if (0==qstrcmp("QWidget", widget->metaObject()->className())) {
widget->setFixedHeight(fixedHeight+Utils::scaleForDpi(4));
} else {
widget->setFixedHeight(fixedHeight);
}
#endif
}
}