[GUI] Remove code for Qt < 5.9

This commit is contained in:
Chris Hennes
2021-03-30 15:38:26 -05:00
committed by wmayer
parent 67d26939dc
commit 50c7ee36bf
57 changed files with 19 additions and 686 deletions

View File

@@ -37,9 +37,7 @@
# include <QToolButton>
#endif
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
# include <QScreen>
#endif
#include <QScreen>
#include <Base/Tools.h>
#include "Action.h"
@@ -431,11 +429,7 @@ void WorkbenchComboBox::showPopup()
int rows = count();
if (rows > 0) {
int height = view()->sizeHintForRow(0);
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
int maxHeight = QApplication::primaryScreen()->size().height();
#else
int maxHeight = QApplication::desktop()->height();
#endif
view()->setMinimumHeight(qMin(height * rows, maxHeight/2));
}