mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Grammar: replaces 'indexes' by 'indices'
Grammar-nazi ran git grep -l 'indexes' | xargs sed -i '' -e 's/indexes/indices/g' to prevent future wincing when reading the source code. Unfortunatly, Qt itself is infected as in QModelIndexList QItemSelection::indexes() const Signed-off-by: Robert C. Helling <helling@atdotde.de>
This commit is contained in:
parent
cb28158b9a
commit
285fa8acbc
26 changed files with 88 additions and 88 deletions
|
@ -2036,14 +2036,14 @@ void ProfileWidget2::keyDeleteAction()
|
|||
DivePlannerPointsModel *plannerModel = DivePlannerPointsModel::instance();
|
||||
int selCount = scene()->selectedItems().count();
|
||||
if (selCount) {
|
||||
QVector<int> selectedIndexes;
|
||||
QVector<int> selectedIndices;
|
||||
Q_FOREACH (QGraphicsItem *i, scene()->selectedItems()) {
|
||||
if (DiveHandler *handler = qgraphicsitem_cast<DiveHandler *>(i)) {
|
||||
selectedIndexes.push_back(handles.indexOf(handler));
|
||||
selectedIndices.push_back(handles.indexOf(handler));
|
||||
handler->hide();
|
||||
}
|
||||
}
|
||||
plannerModel->removeSelectedPoints(selectedIndexes);
|
||||
plannerModel->removeSelectedPoints(selectedIndices);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue