mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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>
This commit is contained in:
parent
b7b8f15198
commit
3aac5b53b8
1 changed files with 4 additions and 0 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue