mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
cleanup: fix typos in comments
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
acd385048a
commit
70fbce46c7
2 changed files with 4 additions and 4 deletions
|
@ -248,8 +248,8 @@ void DiveListView::diveSelectionChanged(const QVector<QModelIndex> &indices)
|
||||||
if (std::find(affectedTrips.begin(), affectedTrips.end(), row) == affectedTrips.end())
|
if (std::find(affectedTrips.begin(), affectedTrips.end(), row) == affectedTrips.end())
|
||||||
affectedTrips.push_back(row);
|
affectedTrips.push_back(row);
|
||||||
}
|
}
|
||||||
// Disable animations when expanding trips. Otherwise, selection of
|
// Disable animations when expanding trips. With animations, selection of
|
||||||
// a large number of dives becomes increadibly slow.
|
// a large number of dives becomes unbearably slow.
|
||||||
bool oldAnimated = isAnimated();
|
bool oldAnimated = isAnimated();
|
||||||
setAnimated(false);
|
setAnimated(false);
|
||||||
MultiFilterSortModel *m = MultiFilterSortModel::instance();
|
MultiFilterSortModel *m = MultiFilterSortModel::instance();
|
||||||
|
@ -441,7 +441,7 @@ void DiveListView::mouseReleaseEvent(QMouseEvent *event)
|
||||||
// and the user clicks on one of them, the selection is unchanged.
|
// and the user clicks on one of them, the selection is unchanged.
|
||||||
// Only on mouse-release the selection is changed, but then
|
// Only on mouse-release the selection is changed, but then
|
||||||
// setSelection() is not called.
|
// setSelection() is not called.
|
||||||
// Notably, this happens when the user selects a trip and the clicks
|
// Notably, this happens when the user selects a trip and then clicks
|
||||||
// on a dive in the same trip.
|
// on a dive in the same trip.
|
||||||
// To solve this, we hook into the mouseReleseEvent here and detect
|
// To solve this, we hook into the mouseReleseEvent here and detect
|
||||||
// selection changes changes by comparing the selection before and after
|
// selection changes changes by comparing the selection before and after
|
||||||
|
|
|
@ -915,7 +915,7 @@ void DiveTripModelTree::divesHidden(dive_trip *trip, const QVector<dive *> &dive
|
||||||
removeTrip(idx); // If all dives are hidden, remove the whole trip!
|
removeTrip(idx); // If all dives are hidden, remove the whole trip!
|
||||||
} else {
|
} else {
|
||||||
removeDivesFromTrip(idx, dives);
|
removeDivesFromTrip(idx, dives);
|
||||||
// Note: if dives are shown and hidden from a trip, we send to signals. Shrug.
|
// Note: if dives are shown and hidden from a trip, we send two signals. Shrug.
|
||||||
dataChanged(createIndex(idx, 0, noParent), createIndex(idx, 0, noParent));
|
dataChanged(createIndex(idx, 0, noParent), createIndex(idx, 0, noParent));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue