mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
code cleanup: replace deprecated fromStdVector() method
Replacement was only introduced in Qt 5.14 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c3614040d9
commit
57f5d4b784
1 changed files with 8 additions and 0 deletions
|
@ -112,7 +112,11 @@ void EditBase<T>::undo()
|
|||
|
||||
// Send signals.
|
||||
DiveField id = fieldId();
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
|
||||
emit diveListNotifier.divesChanged(QVector<dive *>(dives.begin(), dives.end()), id);
|
||||
#else
|
||||
emit diveListNotifier.divesChanged(QVector<dive *>::fromStdVector(dives), id);
|
||||
#endif
|
||||
|
||||
setSelection(selectedDives, current);
|
||||
}
|
||||
|
@ -679,7 +683,11 @@ void EditTagsBase::undo()
|
|||
|
||||
// Send signals.
|
||||
DiveField id = fieldId();
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
|
||||
emit diveListNotifier.divesChanged(QVector<dive *>(dives.begin(), dives.end()), id);
|
||||
#else
|
||||
emit diveListNotifier.divesChanged(QVector<dive *>::fromStdVector(dives), id);
|
||||
#endif
|
||||
|
||||
setSelection(selectedDives, current);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue