summaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-04-25 21:07:38 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-04-25 13:20:25 -0700
commitaaecc6e98ef0d4790a2cb0289d3f0634db21a803 (patch)
treea29a2c6b2abb6b0c2cfe76b7db59c4d39a406885 /desktop-widgets
parentb8e7a600d2d2a30f7e0646fc164ab6e57fd4782f (diff)
downloadsubsurface-aaecc6e98ef0d4790a2cb0289d3f0634db21a803.tar.gz
cleanup: make various functions in DiveListView private
Outside callers had no business calling these functions. Especially some functions that were simply there to override default DiveListView behavior. Mark these as overridden. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/divelistview.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/desktop-widgets/divelistview.h b/desktop-widgets/divelistview.h
index 317be2b70..e490f1398 100644
--- a/desktop-widgets/divelistview.h
+++ b/desktop-widgets/divelistview.h
@@ -23,14 +23,8 @@ class DiveListView : public QTreeView {
public:
DiveListView(QWidget *parent = 0);
~DiveListView();
- void mouseDoubleClickEvent(QMouseEvent * event);
- void selectionChanged(const QItemSelection &selected, const QItemSelection &deselected);
- void currentChanged(const QModelIndex &current, const QModelIndex &previous);
void setSortOrder(int i, Qt::SortOrder order); // Call to set sort order
void reload(); // Call to reload model data
- bool eventFilter(QObject *, QEvent *);
- void unselectDives();
- void contextMenuEvent(QContextMenuEvent *event);
QList<dive_trip *> selectedTrips();
static QString lastUsedImageDir();
static void updateLastUsedImageDir(const QString &s);
@@ -63,9 +57,11 @@ slots:
void tripChanged(dive_trip *trip, TripField);
private:
void setSelection(const QRect &rect, QItemSelectionModel::SelectionFlags flags) override;
+ void unselectDives();
void mouseReleaseEvent(QMouseEvent *event) override;
void keyPressEvent(QKeyEvent *event) override;
void selectAll() override;
+ void selectionChanged(const QItemSelection &selected, const QItemSelection &deselected);
void selectionChangeDone();
DiveTripModelBase::Layout currentLayout;
QModelIndex contextMenuIndex;
@@ -85,6 +81,10 @@ private:
void addToTrip(int delta);
void matchImagesToDives(QStringList fileNames);
void loadImageFromURL(QUrl url);
+ bool eventFilter(QObject *, QEvent *) override;
+ void mouseDoubleClickEvent(QMouseEvent *event) override;
+ void contextMenuEvent(QContextMenuEvent *event) override;
+ void currentChanged(const QModelIndex &current, const QModelIndex &previous) override;
QNetworkAccessManager manager;
};