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
@ -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…
x
Reference in New Issue
Block a user