diff options
author | Arno <am@disconnect.de> | 2012-03-08 07:09:09 +0100 |
---|---|---|
committer | Arno <am@disconnect.de> | 2012-03-08 07:09:09 +0100 |
commit | ea30d012b7777a2aea1c5e957a7d7566eebef391 (patch) | |
tree | 88a1ebdcca7a3184781d4ed4ac29b3892df04d6c /pictureswidget.h | |
parent | 57f69839e3bab9ab73f15811374099576216282b (diff) | |
download | SheMov-ea30d012b7777a2aea1c5e957a7d7566eebef391.tar.gz SheMov-ea30d012b7777a2aea1c5e957a7d7566eebef391.tar.bz2 SheMov-ea30d012b7777a2aea1c5e957a7d7566eebef391.zip |
Show picture on doubleClick in PicturesWidget
Show picture in PictureViewer2 when double clicking an item in pictures
widget. Also shuffle some code around.
Diffstat (limited to 'pictureswidget.h')
-rw-r--r-- | pictureswidget.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 { |