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
|
@ -107,10 +107,10 @@ void TabDiveSite::on_filterText_textChanged(const QString &text)
|
|||
|
||||
QVector<dive_site *> TabDiveSite::selectedDiveSites()
|
||||
{
|
||||
const QModelIndexList indexes = ui.diveSites->view()->selectionModel()->selectedRows();
|
||||
const QModelIndexList indices = ui.diveSites->view()->selectionModel()->selectedRows();
|
||||
QVector<dive_site *> sites;
|
||||
sites.reserve(indexes.size());
|
||||
for (const QModelIndex &idx: indexes) {
|
||||
sites.reserve(indices.size());
|
||||
for (const QModelIndex &idx: indices) {
|
||||
struct dive_site *ds = model.getDiveSite(idx);
|
||||
sites.append(ds);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue