From ea30d012b7777a2aea1c5e957a7d7566eebef391 Mon Sep 17 00:00:00 2001 From: Arno Date: Thu, 8 Mar 2012 07:09:09 +0100 Subject: Show picture on doubleClick in PicturesWidget Show picture in PictureViewer2 when double clicking an item in pictures widget. Also shuffle some code around. --- pictureswidget.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pictureswidget.h') diff --git a/pictureswidget.h b/pictureswidget.h index 1b7fa09..fd0b5ac 100644 --- a/pictureswidget.h +++ b/pictureswidget.h @@ -26,12 +26,14 @@ class QHideEvent; class QEvent; class HoverWindow; class PictureViewer2; +class QAction; class PicturesWidget : public QWidget { Q_OBJECT public: explicit PicturesWidget(QWidget *parent = 0); PictureView *picView() { return mPictureView; } + void setPicViewerAction(QAction *action) { mPicViewerA = action; } public slots: void showPicViewer(bool toggled); @@ -40,6 +42,7 @@ class PicturesWidget : public QWidget { void setMappingColors(); void editMappings(); void constructWindowTitle(); + void showInPicViewer(const QModelIndex &idx); signals: void needWindowTitleChange(QString); @@ -50,6 +53,7 @@ class PicturesWidget : public QWidget { PictureViewer2 *mPicViewer; MappingEditDialog *mEditDialog; const QString mWindowTitleBase; + QAction *mPicViewerA; }; class PictureView : public QTreeView { -- cgit v1.2.3-70-g09d2