diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2014-06-27 18:00:42 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-06-27 20:37:11 -0700 |
commit | 3f98f024e484764e2bfa648d9eb072ce7472acf6 (patch) | |
tree | d04771bf8a78c6f4127e70fedeeff826ac91c9c9 /qt-ui/profile/divepixmapitem.h | |
parent | 259b73335f3ba0597eb2bb21d948d33fcd61bbbe (diff) | |
download | subsurface-3f98f024e484764e2bfa648d9eb072ce7472acf6.tar.gz |
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 <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/divepixmapitem.h')
-rw-r--r-- | qt-ui/profile/divepixmapitem.h | 5 |
1 files changed, 4 insertions, 1 deletions
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 |