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
|
@ -199,11 +199,11 @@ void DiveListView::reset()
|
|||
}
|
||||
|
||||
// If items were selected, inform the selection model
|
||||
void DiveListView::diveSelectionChanged(const QVector<QModelIndex> &indexes)
|
||||
void DiveListView::diveSelectionChanged(const QVector<QModelIndex> &indices)
|
||||
{
|
||||
clearSelection();
|
||||
QItemSelectionModel *s = selectionModel();
|
||||
for (const QModelIndex &index: indexes) {
|
||||
for (const QModelIndex &index: indices) {
|
||||
s->select(index, QItemSelectionModel::Rows | QItemSelectionModel::Select);
|
||||
|
||||
// If an item of a not-yet expanded trip is selected, expand the trip.
|
||||
|
@ -420,7 +420,7 @@ void DiveListView::sortIndicatorChanged(int i, Qt::SortOrder order)
|
|||
if (currentLayout == newLayout) {
|
||||
sortByColumn(i, order);
|
||||
} else {
|
||||
// clear the model, repopulate with new indexes.
|
||||
// clear the model, repopulate with new indices.
|
||||
std::vector<int> expandedRows;
|
||||
if(currentLayout == DiveTripModelBase::TREE)
|
||||
expandedRows = backupExpandedRows();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue