Use the official QItemSelectionModel::SelectionFlags
It's a typedef to the QFlags<QItemSelectionModel::SelectionFlag>. Signed-off-by: Thiago Macieira <thiago@macieira.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
7218fa3568
commit
1ee38b4e5e
@ -51,7 +51,7 @@ void DiveListView::selectDive(struct dive *dive, bool scrollto, bool toggle)
|
||||
{
|
||||
QSortFilterProxyModel *m = qobject_cast<QSortFilterProxyModel*>(model());
|
||||
QModelIndexList match = m->match(m->index(0,0), TreeItemDT::NR, dive->number, 1, Qt::MatchRecursive);
|
||||
QFlags<QItemSelectionModel::SelectionFlag> flags;
|
||||
QItemSelectionModel::SelectionFlags flags;
|
||||
QModelIndex idx = match.first();
|
||||
|
||||
QModelIndex parent = idx.parent();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user