put widget in layout

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20569 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Edwin Leuven 2007-09-28 12:34:35 +00:00
parent 3a7f10bb19
commit 38df07a8a7

View File

@ -21,6 +21,7 @@
#include <QDialog>
#include <QSettings>
#include <QShowEvent>
#include <QGridLayout>
#include <string>
@ -46,7 +47,10 @@ public:
MyController * c = new MyController(*this);
controller_ = c;
controller_->setLyXView(parent);
QGridLayout * gridLayout = new QGridLayout(this);
gridLayout->setMargin(0);
widget_ = new MyWidget(*c, this);
gridLayout->addWidget(widget_);
setWindowTitle("LyX: " + widget_->windowTitle());
}