Skip to content
Snippets Groups Projects
Commit d4ace322 authored by Mikhail Svechnikov's avatar Mikhail Svechnikov
Browse files

IntensityDataProjectionsWidget: cleanup in consctuctor

parent 44e42463
No related branches found
No related tags found
1 merge request!977GUI: migration from SessionItemWidget, part 2
......@@ -33,23 +33,17 @@ IntensityDataProjectionsWidget::IntensityDataProjectionsWidget(QWidget* parent)
, m_propertyPanel(new IntensityDataPropertyWidget(this))
, m_selectionModel(nullptr)
{
QHBoxLayout* mainLayout = new QHBoxLayout(this);
mainLayout->setSpacing(0);
mainLayout->setContentsMargins(0,0,0,0);
auto* splitter = new QSplitter;
splitter->setOrientation(Qt::Vertical);
splitter->addWidget(m_projectionsCanvas);
splitter->addWidget(m_projectionsWidget);
auto* centralWidget = new QWidget;
mainLayout->addWidget(centralWidget);
auto* hLayout = new QHBoxLayout(centralWidget);
hLayout->setContentsMargins(0, 0, 0, 0);
hLayout->setSpacing(0);
hLayout->addWidget(splitter);
hLayout->addWidget(m_propertyPanel);
auto* mainLayout = new QHBoxLayout(this);
mainLayout->setContentsMargins(0, 0, 0, 0);
mainLayout->setSpacing(0);
mainLayout->setContentsMargins(0,0,0,0);
mainLayout->addWidget(splitter);
mainLayout->addWidget(m_propertyPanel);
m_toolbar->setOrientation(Qt::Vertical);
m_toolbar->setStyleSheet("QToolBar{border-left:1px solid rgb(180,180,180);}");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment