From 57f69839e3bab9ab73f15811374099576216282b Mon Sep 17 00:00:00 2001 From: Arno Date: Thu, 8 Mar 2012 06:05:11 +0100 Subject: 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... --- pictureswidget.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pictureswidget.cpp') 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(SmGlobals::instance()->model("MappingTree")); mtm->setSelectedMappings(mPictureView->fileMappings()); -- cgit v1.2.3-70-g09d2