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
|
|
@ -36,20 +36,20 @@ void MultiFilterSortModel::clear()
|
|||
model->clear();
|
||||
}
|
||||
|
||||
// Translate selection into local indexes and re-emit signal
|
||||
void MultiFilterSortModel::selectionChangedSlot(const QVector<QModelIndex> &indexes)
|
||||
// Translate selection into local indices and re-emit signal
|
||||
void MultiFilterSortModel::selectionChangedSlot(const QVector<QModelIndex> &indices)
|
||||
{
|
||||
QVector<QModelIndex> indexesLocal;
|
||||
indexesLocal.reserve(indexes.size());
|
||||
for (const QModelIndex &index: indexes) {
|
||||
QVector<QModelIndex> indicesLocal;
|
||||
indicesLocal.reserve(indices.size());
|
||||
for (const QModelIndex &index: indices) {
|
||||
QModelIndex local = mapFromSource(index);
|
||||
if (local.isValid())
|
||||
indexesLocal.push_back(local);
|
||||
indicesLocal.push_back(local);
|
||||
}
|
||||
emit selectionChanged(indexesLocal);
|
||||
emit selectionChanged(indicesLocal);
|
||||
}
|
||||
|
||||
// Translate current dive into local indexes and re-emit signal
|
||||
// Translate current dive into local indices and re-emit signal
|
||||
void MultiFilterSortModel::currentDiveChangedSlot(QModelIndex index)
|
||||
{
|
||||
QModelIndex local = mapFromSource(index);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue