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>
This commit is contained in:
Berthold Stoeger 2020-04-13 19:37:24 +02:00 committed by Dirk Hohndel
parent 0ccc0f04bb
commit fc697538fa

View file

@ -134,7 +134,7 @@ slots: // Necessary to call from QAction's signals.
void divePlannerHandlerReleased(); void divePlannerHandlerReleased();
#endif #endif
protected: private:
void resizeEvent(QResizeEvent *event) override; void resizeEvent(QResizeEvent *event) override;
#ifndef SUBSURFACE_MOBILE #ifndef SUBSURFACE_MOBILE
void wheelEvent(QWheelEvent *event) override; void wheelEvent(QWheelEvent *event) override;
@ -148,7 +148,6 @@ protected:
void dragEnterEvent(QDragEnterEvent *event) override; void dragEnterEvent(QDragEnterEvent *event) override;
void dragMoveEvent(QDragMoveEvent *event) override; void dragMoveEvent(QDragMoveEvent *event) override;
private:
void changeGas(int tank, int seconds); void changeGas(int tank, int seconds);
void fixBackgroundPos(); void fixBackgroundPos();
void scrollViewTo(const QPoint &pos); void scrollViewTo(const QPoint &pos);
@ -174,7 +173,7 @@ private:
void makeFirstDC(); void makeFirstDC();
void deleteCurrentDC(); void deleteCurrentDC();
void splitCurrentDC(); void splitCurrentDC();
private:
DivePlotDataModel *dataModel; DivePlotDataModel *dataModel;
int zoomLevel; int zoomLevel;
qreal zoomFactor; qreal zoomFactor;