diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-04-13 19:41:30 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-04-13 17:18:37 -0700 |
commit | ebb342c969fab99d1c497b24f5511ebb427cdc92 (patch) | |
tree | cad17108728de5f17441a4b2f80acb0b26f85d61 /profile-widget/divepixmapitem.h | |
parent | fc697538faff60bfb72e3bf62d45a7a629fd9640 (diff) | |
download | subsurface-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.h | 7 |
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; |