[PATCH 08/13] Make this code Qt5 compatible
Anton Lundin
glance at acc.umu.se
Wed Jan 15 00:30:39 UTC 2014
The method have bin renamed in Qt5.
Signed-off-by: Anton Lundin <glance at acc.umu.se>
---
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
More information about the subsurface
mailing list