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>
This commit is contained in:
Berthold Stoeger 2020-12-19 12:12:08 +01:00 committed by bstoeger
parent 3c786e35c3
commit 636c932dfe
2 changed files with 0 additions and 13 deletions

View file

@ -31,16 +31,6 @@ void CloseButtonItem::mousePressEvent(QGraphicsSceneMouseEvent *)
qgraphicsitem_cast<DivePictureItem*>(parentItem())->removePicture(); qgraphicsitem_cast<DivePictureItem*>(parentItem())->removePicture();
} }
void CloseButtonItem::hide()
{
DivePixmapItem::hide();
}
void CloseButtonItem::show()
{
DivePixmapItem::show();
}
DivePictureItem::DivePictureItem(QGraphicsItem *parent): DivePixmapItem(parent), DivePictureItem::DivePictureItem(QGraphicsItem *parent): DivePixmapItem(parent),
canvas(new QGraphicsRectItem(this)), canvas(new QGraphicsRectItem(this)),
shadow(new QGraphicsRectItem(this)), shadow(new QGraphicsRectItem(this)),

View file

@ -19,9 +19,6 @@ class CloseButtonItem : public DivePixmapItem {
Q_OBJECT Q_OBJECT
public: public:
CloseButtonItem(QGraphicsItem *parent = 0); CloseButtonItem(QGraphicsItem *parent = 0);
public slots:
void hide();
void show();
private: private:
void mousePressEvent(QGraphicsSceneMouseEvent *event) override; void mousePressEvent(QGraphicsSceneMouseEvent *event) override;
}; };