mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ void DiveListView::selectDive(struct dive *dive, bool scrollto, bool toggle)
|
||||||
{
|
{
|
||||||
QSortFilterProxyModel *m = qobject_cast<QSortFilterProxyModel*>(model());
|
QSortFilterProxyModel *m = qobject_cast<QSortFilterProxyModel*>(model());
|
||||||
QModelIndexList match = m->match(m->index(0,0), TreeItemDT::NR, dive->number, 1, Qt::MatchRecursive);
|
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 idx = match.first();
|
||||||
|
|
||||||
QModelIndex parent = idx.parent();
|
QModelIndex parent = idx.parent();
|
||||||
|
|
Loading…
Add table
Reference in a new issue