From 749bc6023e8b902b1751691022b732c155aa1605 Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Wed, 15 Jan 2014 09:30:39 +0100 Subject: [PATCH] Make this code Qt5 compatible The method have bin renamed in Qt5. Signed-off-by: Anton Lundin Signed-off-by: Dirk Hohndel --- qt-ui/divelistview.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qt-ui/divelistview.cpp b/qt-ui/divelistview.cpp index 9f5b0c0a7..41ddf998d 100644 --- a/qt-ui/divelistview.cpp +++ b/qt-ui/divelistview.cpp @@ -319,7 +319,11 @@ 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());