diff options
author | Tomaz Canabrava <tomaz.canabrava@gmail.com> | 2015-05-24 12:47:07 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-05-24 09:37:18 -0700 |
commit | bd73156e2b83730cd91f4dc989aca197df3d929c (patch) | |
tree | edea71770d1d86a18d049d5c5d3556bf58f6fb2b /qt-ui/divelistview.cpp | |
parent | 52c1f47ca8a02feae1cc5692df5a089e3a129f87 (diff) | |
download | subsurface-bd73156e2b83730cd91f4dc989aca197df3d929c.tar.gz |
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 <tomaz.canabrava@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/divelistview.cpp')
-rw-r--r-- | qt-ui/divelistview.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
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<QSortFilterProxyModel *>(model()); |