From 636c932dfe202c44b6f8d13433dd8fef1c302277 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 19 Dec 2020 12:12:08 +0100 Subject: [PATCH] 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 --- profile-widget/divepixmapitem.cpp | 10 ---------- profile-widget/divepixmapitem.h | 3 --- 2 files changed, 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(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; };