mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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:
parent
3c786e35c3
commit
636c932dfe
2 changed files with 0 additions and 13 deletions
|
@ -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)),
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue