summaryrefslogtreecommitdiffstats
path: root/pictureswidget.h
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2012-03-08 06:05:11 +0100
committerArno <am@disconnect.de>2012-03-08 06:05:11 +0100
commit57f69839e3bab9ab73f15811374099576216282b (patch)
tree667efb0992ec4f72f4dc44a868fa568c750177d1 /pictureswidget.h
parente3fe65d3e8ca88dbd76d9c026cf9f8690a972902 (diff)
downloadSheMov-57f69839e3bab9ab73f15811374099576216282b.tar.gz
SheMov-57f69839e3bab9ab73f15811374099576216282b.tar.bz2
SheMov-57f69839e3bab9ab73f15811374099576216282b.zip
First draft of PictureViewer2
Doesn't do much other than showing a default picture, but it behaves like a QDialog and positions itself correctly. It's quite a pain in the ass with a tiling window manager...
Diffstat (limited to 'pictureswidget.h')
-rw-r--r--pictureswidget.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/pictureswidget.h b/pictureswidget.h
index ece2bfb..1b7fa09 100644
--- a/pictureswidget.h
+++ b/pictureswidget.h
@@ -13,6 +13,7 @@
#include <QSqlDatabase>
#include "smtreemodel.h"
+#include "pictureviewer2.h"
class PictureView;
class MappingTreeWidget;
@@ -24,6 +25,7 @@ class QSortFilterProxyModel;
class QHideEvent;
class QEvent;
class HoverWindow;
+class PictureViewer2;
class PicturesWidget : public QWidget {
Q_OBJECT
@@ -31,6 +33,9 @@ class PicturesWidget : public QWidget {
explicit PicturesWidget(QWidget *parent = 0);
PictureView *picView() { return mPictureView; }
+ public slots:
+ void showPicViewer(bool toggled);
+
private slots:
void setMappingColors();
void editMappings();
@@ -42,6 +47,7 @@ class PicturesWidget : public QWidget {
private:
MappingTreeWidget *mMappingTree;
PictureView *mPictureView;
+ PictureViewer2 *mPicViewer;
MappingEditDialog *mEditDialog;
const QString mWindowTitleBase;
};