summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-04-13 19:37:24 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-04-13 17:18:37 -0700
commitfc697538faff60bfb72e3bf62d45a7a629fd9640 (patch)
treeb48c416cdafed48fbccdd88ad70324779de92e60
parent0ccc0f04bb960ac00fa6175130125c8eed752072 (diff)
downloadsubsurface-fc697538faff60bfb72e3bf62d45a7a629fd9640.tar.gz
cleanup: remove protected access specifier in ProfileWidget2
There were a number of protected member functions in ProfileWidget2. However no class subclassed ProfileWidget2, so this appears to have been an artifact. Therefore, make these functions private. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
-rw-r--r--profile-widget/profilewidget2.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/profile-widget/profilewidget2.h b/profile-widget/profilewidget2.h
index 43a7f51b6..e00bda074 100644
--- a/profile-widget/profilewidget2.h
+++ b/profile-widget/profilewidget2.h
@@ -134,7 +134,7 @@ slots: // Necessary to call from QAction's signals.
void divePlannerHandlerReleased();
#endif
-protected:
+private:
void resizeEvent(QResizeEvent *event) override;
#ifndef SUBSURFACE_MOBILE
void wheelEvent(QWheelEvent *event) override;
@@ -148,7 +148,6 @@ protected:
void dragEnterEvent(QDragEnterEvent *event) override;
void dragMoveEvent(QDragMoveEvent *event) override;
-private:
void changeGas(int tank, int seconds);
void fixBackgroundPos();
void scrollViewTo(const QPoint &pos);
@@ -174,7 +173,7 @@ private:
void makeFirstDC();
void deleteCurrentDC();
void splitCurrentDC();
-private:
+
DivePlotDataModel *dataModel;
int zoomLevel;
qreal zoomFactor;