diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-11-09 10:45:08 +0100 |
---|---|---|
committer | bstoeger <32835590+bstoeger@users.noreply.github.com> | 2019-11-11 22:44:58 +0100 |
commit | a474264cc87d10b36287bd800efc46a35a97eb78 (patch) | |
tree | 14f60c74a1b15b4476c294bbb2ff4aea410044a6 /qt-models/divetripmodel.h | |
parent | bd7357238fa5dc027d963d49d6b3c4bdd67cefa3 (diff) | |
download | subsurface-a474264cc87d10b36287bd800efc46a35a97eb78.tar.gz |
Cleanup: fix typos in comment
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/divetripmodel.h')
-rw-r--r-- | qt-models/divetripmodel.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/qt-models/divetripmodel.h b/qt-models/divetripmodel.h index b63456236..e0eefb1f0 100644 --- a/qt-models/divetripmodel.h +++ b/qt-models/divetripmodel.h @@ -11,7 +11,7 @@ // 2) List view: one-level model where dives are sorted by one out // of many keys (e.g. date, depth, etc.). // -// These two representations are realized by two classe, viz. +// These two representations are realized by two classes, viz. // DiveTripModelTree and DiveTripModelList. Both classes derive // from DiveTripModelBase, which implements common features (e.g. // definition of the column types, access of data from the core @@ -19,8 +19,8 @@ // // The currently active model is set via DiveTripModelBase::resetModel(). // This will create a new model. The model can be accessed with -// DiveTripModelBase::instance(). Any pointer obtained by instance() -// is invalid after a call to resetModel()! Yes, this is surprising +// DiveTripModelBase::instance(). A pointer obtained by instance() +// is invalidated by a call to resetModel()! Yes, this is surprising // behavior, so care must be taken. class DiveTripModelBase : public QAbstractItemModel { Q_OBJECT @@ -65,8 +65,8 @@ public: // Reset the model using the given layout. After this call instance() will return // a newly allocated object and the old model will have been destroyed! Thus, the - // caller is repsonsible of removing all references to any previous model obtained - // by insance(). + // caller is responsible for removing all references to any previous model obtained + // by instance(). static void resetModel(Layout layout); Qt::ItemFlags flags(const QModelIndex &index) const; |