summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-04-25 15:10:42 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-04-25 10:23:05 -0700
commitb6aad78dabc09e88eb08d20cc5045bf66497911d (patch)
treee5d68213d4ae5024c7e93a44b2f100b07251767c
parentd8fabd241cb6efddd8e2faf3f66d05a8034b0736 (diff)
downloadsubsurface-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>
-rw-r--r--desktop-widgets/divelistview.h4
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;
};