diff options
author | Arno <am@disconnect.de> | 2012-03-08 06:05:11 +0100 |
---|---|---|
committer | Arno <am@disconnect.de> | 2012-03-08 06:05:11 +0100 |
commit | 57f69839e3bab9ab73f15811374099576216282b (patch) | |
tree | 667efb0992ec4f72f4dc44a868fa568c750177d1 /pictureswidget.cpp | |
parent | e3fe65d3e8ca88dbd76d9c026cf9f8690a972902 (diff) | |
download | SheMov-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.cpp')
-rw-r--r-- | pictureswidget.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pictureswidget.cpp b/pictureswidget.cpp index fdcba30..907b33f 100644 --- a/pictureswidget.cpp +++ b/pictureswidget.cpp @@ -44,6 +44,7 @@ PicturesWidget::PicturesWidget(QWidget *parent) : QWidget(parent), mWindowTitleB //misc mEditDialog = new MappingEditDialog(this); + mPicViewer = new PictureViewer2(this); //put it all togehter QHBoxLayout *mainLayout = new QHBoxLayout; @@ -51,6 +52,10 @@ PicturesWidget::PicturesWidget(QWidget *parent) : QWidget(parent), mWindowTitleB setLayout(mainLayout); } +void PicturesWidget::showPicViewer(bool toggled){ + mPicViewer->setVisible(toggled); +} + void PicturesWidget::setMappingColors(){ MappingTreeModel *mtm = static_cast<MappingTreeModel*>(SmGlobals::instance()->model("MappingTree")); mtm->setSelectedMappings(mPictureView->fileMappings()); |