diff options
author | Anton Lundin <glance@acc.umu.se> | 2014-01-15 09:30:39 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-01-15 15:49:48 +0700 |
commit | 3aac5b53b8db53c2517f2f68b674b3fab3c396ed (patch) | |
tree | 2bc81419aa6a473a0e5b75a6deae2e18ca8f7846 /qt-ui | |
parent | b7b8f151982d1aa2c2b2e66b203abe712a8cb9d3 (diff) | |
download | subsurface-3aac5b53b8db53c2517f2f68b674b3fab3c396ed.tar.gz |
Make this code Qt5 compatible
The method have bin renamed in Qt5.
Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/divelistview.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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<QSortFilterProxyModel*>(model()); |