From b6aad78dabc09e88eb08d20cc5045bf66497911d Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 25 Apr 2020 15:10:42 +0200 Subject: 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 --- desktop-widgets/divelistview.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'desktop-widgets/divelistview.h') 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 &newDiveSelection); void contextMenuEvent(QContextMenuEvent *event); QList 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; }; -- cgit v1.2.3-70-g09d2