diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-12-19 12:12:08 +0100 |
---|---|---|
committer | bstoeger <32835590+bstoeger@users.noreply.github.com> | 2020-12-19 20:19:51 +0100 |
commit | 636c932dfe202c44b6f8d13433dd8fef1c302277 (patch) | |
tree | 6f20317cdeb5b2938f1cecb6d9325214e16bfd62 /profile-widget | |
parent | 3c786e35c3ca614ab16141b3f0ad4a03a0bcba2b (diff) | |
download | subsurface-636c932dfe202c44b6f8d13433dd8fef1c302277.tar.gz |
cleanup: remove CloseButtonItem::show() and hide() slots
These were only calling the corresponding functions in the
base class. So just don't override them..?
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'profile-widget')
-rw-r--r-- | profile-widget/divepixmapitem.cpp | 10 | ||||
-rw-r--r-- | profile-widget/divepixmapitem.h | 3 |
2 files changed, 0 insertions, 13 deletions
diff --git a/profile-widget/divepixmapitem.cpp b/profile-widget/divepixmapitem.cpp index 301d80257..0e46519b6 100644 --- a/profile-widget/divepixmapitem.cpp +++ b/profile-widget/divepixmapitem.cpp @@ -31,16 +31,6 @@ void CloseButtonItem::mousePressEvent(QGraphicsSceneMouseEvent *) qgraphicsitem_cast<DivePictureItem*>(parentItem())->removePicture(); } -void CloseButtonItem::hide() -{ - DivePixmapItem::hide(); -} - -void CloseButtonItem::show() -{ - DivePixmapItem::show(); -} - DivePictureItem::DivePictureItem(QGraphicsItem *parent): DivePixmapItem(parent), canvas(new QGraphicsRectItem(this)), shadow(new QGraphicsRectItem(this)), diff --git a/profile-widget/divepixmapitem.h b/profile-widget/divepixmapitem.h index 38007995c..545ecb2ae 100644 --- a/profile-widget/divepixmapitem.h +++ b/profile-widget/divepixmapitem.h @@ -19,9 +19,6 @@ class CloseButtonItem : public DivePixmapItem { Q_OBJECT public: CloseButtonItem(QGraphicsItem *parent = 0); -public slots: - void hide(); - void show(); private: void mousePressEvent(QGraphicsSceneMouseEvent *event) override; }; |