All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
LayerPropertiesInfoWidget.cpp
Go to the documentation of this file.
2 #include "LayerPropertiesInfo.h"
3 
4 // Qt
5 #include <QGridLayout>
6 
8  QWidget(parent)
9 {
10  QWidget::resize(100, 100);
11  QWidget::setMinimumSize(QSize(100, 100));
12  QWidget::setWindowTitle(tr("Layer properties"));
13 
14  QtTreePropertyBrowser* pb = new QtTreePropertyBrowser(this);
16 
17  pb->setPropertiesWithoutValueMarked(true);
18  pb->setResizeMode(QtTreePropertyBrowser::ResizeToContents);
19 
20  QGridLayout* lay = new QGridLayout(this);
21  lay->addWidget(pb);
22 }
23 
25 {
26  delete m_info;
27 }
This is the base class for layers.
Definition: AbstractLayer.h:76
LayerPropertiesInfoWidget(te::map::AbstractLayer *layer, QWidget *parent=0)