From bd73156e2b83730cd91f4dc989aca197df3d929c Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Sun, 24 May 2015 12:47:07 -0300 Subject: Remove support for Qt4 (part 1) I`m now clearing the code for all use of Qt < 5, since Qt 5 was released for quite a while and making two versions of Qt to work together is a bit painfull. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/divelistview.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'qt-ui/divelistview.cpp') diff --git a/qt-ui/divelistview.cpp b/qt-ui/divelistview.cpp index 16033dca9..77b33b941 100644 --- a/qt-ui/divelistview.cpp +++ b/qt-ui/divelistview.cpp @@ -414,11 +414,8 @@ void DiveListView::reload(DiveTripModel::Layout layout, bool forceSort) layout = currentLayout; else currentLayout = layout; -#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) - header()->setClickable(true); -#else + header()->setSectionsClickable(true); -#endif connect(header(), SIGNAL(sectionPressed(int)), this, SLOT(headerClicked(int)), Qt::UniqueConnection); QSortFilterProxyModel *m = qobject_cast(model()); -- cgit v1.2.3-70-g09d2