#2657 Better initial position of Ensemble curve color legend. Use preferred size

This commit is contained in:
Jacob Støren committed 2018-04-20 16:59:10 +02:00
1 parent 3957027b4b
commit 72fc66f827
2 files changed
+9 -2

No files matched your search

@@ -33,7 +33,11 @@
RiuCvfOverlayItemWidget::RiuCvfOverlayItemWidget(QWidget* parent/*=0*/)
: QWidget(parent)
{
this->setLayout(new QHBoxLayout(this));
auto hblayout = new QHBoxLayout(this);
hblayout->setMargin(0);
hblayout->setSpacing(0);
this->setLayout(hblayout);
m_overlayItemLabel = new QLabel(this);
this->layout()->addWidget(m_overlayItemLabel);
}