From f0509d080afa160e8d0343bc5688171ddc7348a4 Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Tue, 11 Feb 2020 14:04:27 +0100 Subject: [PATCH] #5507 Well Allocation Plot : Reduce size of left column --- .../UserInterface/RiuNightchartsWidget.cpp | 2 +- .../UserInterface/RiuWellAllocationPlot.cpp | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ApplicationCode/UserInterface/RiuNightchartsWidget.cpp b/ApplicationCode/UserInterface/RiuNightchartsWidget.cpp index 8a6aaff0c6..df7bc35747 100644 --- a/ApplicationCode/UserInterface/RiuNightchartsWidget.cpp +++ b/ApplicationCode/UserInterface/RiuNightchartsWidget.cpp @@ -115,7 +115,7 @@ QSize RiuNightchartsWidget::sizeHint() const if ( m_showPie ) { - int maxPieSize = 350; + int maxPieSize = 300; widthHint = widthHint + maxPieSize; heightHint = heightHint > maxPieSize ? heightHint : maxPieSize; diff --git a/ApplicationCode/UserInterface/RiuWellAllocationPlot.cpp b/ApplicationCode/UserInterface/RiuWellAllocationPlot.cpp index a1aa6e1c00..72d4301743 100644 --- a/ApplicationCode/UserInterface/RiuWellAllocationPlot.cpp +++ b/ApplicationCode/UserInterface/RiuWellAllocationPlot.cpp @@ -69,10 +69,10 @@ RiuWellAllocationPlot::RiuWellAllocationPlot( RimWellAllocationPlot* plotDefinit mainLayout->addWidget( m_titleLabel, 0, Qt::AlignCenter ); auto plotWidgetsLayout = new QHBoxLayout(); - auto rightColumnLayout = new QVBoxLayout(); + auto leftColumnLayout = new QVBoxLayout(); mainLayout->addLayout( plotWidgetsLayout ); - plotWidgetsLayout->addLayout( rightColumnLayout ); + plotWidgetsLayout->addLayout( leftColumnLayout ); m_legendWidget = new RiuNightchartsWidget( this ); new RiuPlotObjectPicker( m_legendWidget, m_plotDefinition->plotLegend() ); @@ -81,17 +81,17 @@ RiuWellAllocationPlot::RiuWellAllocationPlot( RimWellAllocationPlot* plotDefinit menuBuilder << "RicShowTotalAllocationDataFeature"; new RiuContextMenuLauncher( m_legendWidget, menuBuilder ); - rightColumnLayout->addWidget( m_legendWidget ); + leftColumnLayout->addWidget( m_legendWidget ); m_legendWidget->showPie( false ); QWidget* totalFlowAllocationWidget = m_plotDefinition->totalWellFlowPlot()->createViewWidget( this ); new RiuPlotObjectPicker( totalFlowAllocationWidget, m_plotDefinition->totalWellFlowPlot() ); new RiuContextMenuLauncher( totalFlowAllocationWidget, menuBuilder ); - rightColumnLayout->addWidget( totalFlowAllocationWidget, Qt::AlignTop ); - rightColumnLayout->addWidget( m_plotDefinition->tofAccumulatedPhaseFractionsPlot()->createViewWidget( this ), - Qt::AlignTop ); - rightColumnLayout->addStretch(); + leftColumnLayout->addWidget( totalFlowAllocationWidget, Qt::AlignTop ); + leftColumnLayout->addWidget( m_plotDefinition->tofAccumulatedPhaseFractionsPlot()->createViewWidget( this ), + Qt::AlignTop ); + leftColumnLayout->addStretch(); QWidget* wellFlowWidget = m_plotDefinition->accumulatedWellFlowPlot()->createPlotWidget();