diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-04-25 15:10:42 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-04-25 10:23:05 -0700 |
commit | b6aad78dabc09e88eb08d20cc5045bf66497911d (patch) | |
tree | e5d68213d4ae5024c7e93a44b2f100b07251767c /desktop-widgets/divelistview.h | |
parent | d8fabd241cb6efddd8e2faf3f66d05a8034b0736 (diff) | |
download | subsurface-b6aad78dabc09e88eb08d20cc5045bf66497911d.tar.gz |
desktop: make DiveListView::selectDive() private
Thus, it is made clear that these member functions can only be
accessed from DiveListView itself. This should make debugging
easier.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/divelistview.h')
-rw-r--r-- | desktop-widgets/divelistview.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop-widgets/divelistview.h b/desktop-widgets/divelistview.h index a0ead2de3..f7bca9438 100644 --- a/desktop-widgets/divelistview.h +++ b/desktop-widgets/divelistview.h @@ -30,8 +30,6 @@ public: void reload(); // Call to reload model data bool eventFilter(QObject *, QEvent *); void unselectDives(); - void selectDive(QModelIndex index, bool scrollto = false); - void selectDive(int dive_table_idx, bool scrollto = false); void selectDives(const QList<int> &newDiveSelection); void contextMenuEvent(QContextMenuEvent *event); QList<dive_trip *> selectedTrips(); @@ -88,6 +86,8 @@ private: void addToTrip(int delta); void matchImagesToDives(QStringList fileNames); void loadImageFromURL(QUrl url); + void selectDive(QModelIndex index, bool scrollto = false); + void selectDive(int dive_table_idx, bool scrollto = false); QNetworkAccessManager manager; }; |