From 70fbce46c7b754cb20053874164b577fd8975e03 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 20 Aug 2022 20:56:09 +0200 Subject: [PATCH] cleanup: fix typos in comments Signed-off-by: Berthold Stoeger --- desktop-widgets/divelistview.cpp | 6 +++--- qt-models/divetripmodel.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/desktop-widgets/divelistview.cpp b/desktop-widgets/divelistview.cpp index 25a30eba2..64fce98b0 100644 --- a/desktop-widgets/divelistview.cpp +++ b/desktop-widgets/divelistview.cpp @@ -248,8 +248,8 @@ void DiveListView::diveSelectionChanged(const QVector &indices) if (std::find(affectedTrips.begin(), affectedTrips.end(), row) == affectedTrips.end()) affectedTrips.push_back(row); } - // Disable animations when expanding trips. Otherwise, selection of - // a large number of dives becomes increadibly slow. + // Disable animations when expanding trips. With animations, selection of + // a large number of dives becomes unbearably slow. bool oldAnimated = isAnimated(); setAnimated(false); 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. // Only on mouse-release the selection is changed, but then // 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. // To solve this, we hook into the mouseReleseEvent here and detect // selection changes changes by comparing the selection before and after diff --git a/qt-models/divetripmodel.cpp b/qt-models/divetripmodel.cpp index 1042a65a0..2f35367a3 100644 --- a/qt-models/divetripmodel.cpp +++ b/qt-models/divetripmodel.cpp @@ -915,7 +915,7 @@ void DiveTripModelTree::divesHidden(dive_trip *trip, const QVector &dive removeTrip(idx); // If all dives are hidden, remove the whole trip! } else { 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)); } } else {