From 3f98f024e484764e2bfa648d9eb072ce7472acf6 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Fri, 27 Jun 2014 18:00:42 -0300 Subject: Open picture manager when clicking on the picture at the profile This patch makes the click on pic == open picture browser works also on the profile instead of only on the list view.. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/profile/divepixmapitem.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'qt-ui/profile/divepixmapitem.h') diff --git a/qt-ui/profile/divepixmapitem.h b/qt-ui/profile/divepixmapitem.h index a0f542ea0..26aeeaf65 100644 --- a/qt-ui/profile/divepixmapitem.h +++ b/qt-ui/profile/divepixmapitem.h @@ -18,11 +18,14 @@ class DivePictureItem : public DivePixmapItem { Q_OBJECT Q_PROPERTY(qreal scale WRITE setScale READ scale) public: - DivePictureItem(QObject *parent = 0); + DivePictureItem(int row, QObject *parent = 0); void setPixmap(const QPixmap& pix); protected: void hoverEnterEvent(QGraphicsSceneHoverEvent *event); void hoverLeaveEvent(QGraphicsSceneHoverEvent *event); + void mousePressEvent(QGraphicsSceneMouseEvent *event); +private: + int rowOnModel; }; #endif // DIVEPIXMAPITEM_H -- cgit v1.2.3-70-g09d2