mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +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;
|
layout = currentLayout;
|
||||||
else
|
else
|
||||||
currentLayout = layout;
|
currentLayout = layout;
|
||||||
|
#if QT_VERSION < QT_VERSION_CHECK(5,0,0)
|
||||||
header()->setClickable(true);
|
header()->setClickable(true);
|
||||||
|
#else
|
||||||
|
header()->setSectionsClickable(true);
|
||||||
|
#endif
|
||||||
connect(header(), SIGNAL(sectionPressed(int)), this, SLOT(headerClicked(int)), Qt::UniqueConnection);
|
connect(header(), SIGNAL(sectionPressed(int)), this, SLOT(headerClicked(int)), Qt::UniqueConnection);
|
||||||
|
|
||||||
QSortFilterProxyModel *m = qobject_cast<QSortFilterProxyModel*>(model());
|
QSortFilterProxyModel *m = qobject_cast<QSortFilterProxyModel*>(model());
|
||||||
|
|
Loading…
Add table
Reference in a new issue