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>
This commit is contained in:
Tomaz Canabrava 2014-06-27 18:00:42 -03:00 committed by Dirk Hohndel
parent 259b73335f
commit 3f98f024e4
4 changed files with 18 additions and 7 deletions

View file

@ -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