#4926 Summary Plot : Add "Plot Preview" to plot editor

This commit is contained in:
Magne Sjaastad
2019-10-25 14:27:22 +02:00
parent 6110748192
commit 5183fbd5db
2 changed files with 16 additions and 1 deletions

View File

@@ -107,7 +107,7 @@ void RicSummaryCurveCreatorSplitterUi::recursivelyConfigureAndUpdateTopLevelUiOr
QMinimizePanel* curveGroup = getOrCreateCurveTreeGroup();
m_lowerLeftLayout->insertWidget( 2, curveGroup, 1 );
m_lowerLeftLayout->addStretch( 0 );
m_secondRowLayout->insertWidget( 1, getOrCreatePlotWidget() );
m_lowerRightLayout->insertWidget( 1, getOrCreatePlotWidget() );
// Fields at bottom of dialog
configureAndUpdateFields( 1, m_bottomFieldLayout, topLevelUiItems, uiConfigName );
@@ -138,6 +138,20 @@ QWidget* RicSummaryCurveCreatorSplitterUi::createWidget( QWidget* parent )
m_lowerLeftLayout->setContentsMargins( 0, 0, 0, 0 );
m_secondRowLayout->addLayout( m_lowerLeftLayout );
m_lowerRightLayout = new QVBoxLayout;
m_lowerRightLayout->setContentsMargins( 0, 0, 0, 0 );
m_secondRowLayout->addLayout( m_lowerRightLayout );
{
auto label = new QLabel( "Plot Preview" );
label->setAlignment( Qt::AlignCenter );
auto font = label->font();
font.setPixelSize( 20 );
label->setFont( font );
m_lowerRightLayout->insertWidget( 0, label );
}
m_firstColumnSplitter = new QSplitter( Qt::Vertical );
m_firstColumnSplitter->setContentsMargins( 0, 0, 0, 0 );

View File

@@ -87,6 +87,7 @@ private:
QPointer<QHBoxLayout> m_firstRowLayout;
QPointer<QHBoxLayout> m_secondRowLayout;
QPointer<QVBoxLayout> m_lowerLeftLayout;
QPointer<QVBoxLayout> m_lowerRightLayout;
QPointer<QHBoxLayout> m_bottomFieldLayout;