From 3aac5b53b8db53c2517f2f68b674b3fab3c396ed Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Wed, 15 Jan 2014 09:30:39 +0100 Subject: 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 5a436f2a9..607f8783c 100644 --- a/qt-ui/divelistview.cpp +++ b/qt-ui/divelistview.cpp @@ -320,7 +320,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()); -- cgit v1.2.3-70-g09d2