summaryrefslogtreecommitdiffstats
path: root/profile-widget/divepixmapitem.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-04-13 19:41:30 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-04-13 17:18:37 -0700
commitebb342c969fab99d1c497b24f5511ebb427cdc92 (patch)
treecad17108728de5f17441a4b2f80acb0b26f85d61 /profile-widget/divepixmapitem.h
parentfc697538faff60bfb72e3bf62d45a7a629fd9640 (diff)
downloadsubsurface-ebb342c969fab99d1c497b24f5511ebb427cdc92.tar.gz
cleanup: turn protected into private members
Some profilewidget classes hat protected members which can be made private as there is no subclassing. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'profile-widget/divepixmapitem.h')
-rw-r--r--profile-widget/divepixmapitem.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/profile-widget/divepixmapitem.h b/profile-widget/divepixmapitem.h
index cf5b86d7c..38007995c 100644
--- a/profile-widget/divepixmapitem.h
+++ b/profile-widget/divepixmapitem.h
@@ -19,11 +19,11 @@ class CloseButtonItem : public DivePixmapItem {
Q_OBJECT
public:
CloseButtonItem(QGraphicsItem *parent = 0);
-protected:
- void mousePressEvent(QGraphicsSceneMouseEvent *event) override;
public slots:
void hide();
void show();
+private:
+ void mousePressEvent(QGraphicsSceneMouseEvent *event) override;
};
class DivePictureItem : public DivePixmapItem {
@@ -37,11 +37,10 @@ public slots:
void settingsChanged();
void removePicture();
void setFileUrl(const QString& s);
-protected:
+private:
void hoverEnterEvent(QGraphicsSceneHoverEvent *event);
void hoverLeaveEvent(QGraphicsSceneHoverEvent *event);
void mousePressEvent(QGraphicsSceneMouseEvent *event);
-private:
QString fileUrl;
QGraphicsRectItem *canvas;
QGraphicsRectItem *shadow;