35 #include <QGridLayout>
46 QVBoxLayout* layout =
new QVBoxLayout(
this);
47 this->setLayout(layout);
48 layout->setSpacing(0);
53 layout->addWidget(mViewContainer);
62 mViewContainer->show();
63 static int nameGenerator = 0;
64 QString uid = QString(
"view-%1-%2")
66 .arg(reinterpret_cast<long>(
this));
71 viewItem->
getView()->setType(type);
72 mViews.push_back(view);
79 mViewContainer->hide();
80 mViewContainer->
clear();
boost::shared_ptr< class View > ViewPtr
ViewItem * addView(QString uid, LayoutRegion region, QString name="")
virtual void setModified()
void renderAll()
Use this function to render all views at once. Do not call render on each view.
virtual QGridLayout * getGridLayout()
ViewRepCollectionPtr getView()