[Spreadsheet] Remove deprecated Qt < 5.9 code

This commit is contained in:
Chris Hennes
2021-03-31 11:45:29 -05:00
committed by wwmayer
parent f200cea636
commit 08ba85888e
2 changed files with 2 additions and 11 deletions

View File

@@ -37,11 +37,7 @@ public:
SheetViewHeader(QTableView *owner, Qt::Orientation o)
: QHeaderView(o),owner(owner)
{
#if QT_VERSION >= 0x050000
setSectionsClickable(true);
#else
setClickable(true);
#endif
}
Q_SIGNALS:
void resizeFinished();

View File

@@ -64,9 +64,7 @@
#include <QtGui/QMouseEvent>
#include <math.h>
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
# include <QScreen>
#endif
#include <QScreen>
#include "qtcolorpicker.h"
@@ -316,11 +314,8 @@ void QtColorPicker::buttonPressed(bool toggled)
if (!toggled)
return;
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
const QRect desktop = QApplication::primaryScreen()->geometry();
#else
const QRect desktop = QApplication::desktop()->geometry();
#endif
// Make sure the popup is inside the desktop.
QPoint pos = mapToGlobal(rect().bottomLeft());
if (pos.x() < desktop.left())