diff options
Diffstat (limited to 'profile-widget/divepixmapitem.h')
-rw-r--r-- | profile-widget/divepixmapitem.h | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/profile-widget/divepixmapitem.h b/profile-widget/divepixmapitem.h index 16dbdf8fa..6abe410a6 100644 --- a/profile-widget/divepixmapitem.h +++ b/profile-widget/divepixmapitem.h @@ -15,20 +15,12 @@ public: DivePixmapItem(QGraphicsItem *parent = 0); }; -class DiveButtonItem : public DivePixmapItem { +class CloseButtonItem : public DivePixmapItem { Q_OBJECT public: - DiveButtonItem(QGraphicsItem *parent = 0); + CloseButtonItem(QGraphicsItem *parent = 0); protected: virtual void mousePressEvent(QGraphicsSceneMouseEvent *event); -signals: - void clicked(); -}; - -class CloseButtonItem : public DiveButtonItem { - Q_OBJECT -public: - CloseButtonItem(QGraphicsItem *parent = 0); public slots: void hide(); void show(); @@ -42,9 +34,7 @@ public: void setPixmap(const QPixmap& pix); public slots: void settingsChanged(); -#ifndef SUBSURFACE_MOBILE void removePicture(); -#endif void setFileUrl(const QString& s); protected: void hoverEnterEvent(QGraphicsSceneHoverEvent *event); @@ -54,7 +44,7 @@ private: QString fileUrl; QGraphicsRectItem *canvas; QGraphicsRectItem *shadow; - DiveButtonItem *button; + CloseButtonItem *button; }; #endif // DIVEPIXMAPITEM_H |