The method have bin renamed in Qt5.

Signed-off-by: Anton Lundin <[email protected]>
---
 qt-ui/divelistview.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/qt-ui/divelistview.cpp b/qt-ui/divelistview.cpp
index 5a436f2..607f878 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<QSortFilterProxyModel*>(model());
-- 
1.8.3.2

_______________________________________________
subsurface mailing list
[email protected]
http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to