(#406) Changed name of additional property editor and removed margins

This commit is contained in:
Magne Sjaastad
2015-09-01 11:49:43 +02:00
parent 33d5b9b63b
commit bd396b7ff4
2 changed files with 10 additions and 1 deletions

View File

@@ -25,6 +25,7 @@
#include "cafPdmUiPropertyView.h"
#include "cafPdmUiTreeView.h"
#include <QLabel>
#include <QSplitter>
#include <QTreeView>
#include <QVBoxLayout>
@@ -63,10 +64,18 @@ RiuProjectAndPropertyView::RiuProjectAndPropertyView(QWidget* parent, Qt::Window
connect(m_projectTreeView, SIGNAL(selectedObjectChanged(caf::PdmObjectHandle*)), m_propertyView, SLOT(showProperties(caf::PdmObjectHandle*)));
QSplitter *splitter = new QSplitter(Qt::Vertical);
splitter->addWidget(m_projectTreeView);
QLabel* propertyHeader = new QLabel;
propertyHeader->setText("Property Editor");
splitter->addWidget(propertyHeader);
splitter->addWidget(m_propertyView);
QVBoxLayout* layout = new QVBoxLayout;
layout->setMargin(0);
layout->addWidget(splitter);
setLayout(layout);