mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5507 Well Allocation Plot : Reduce size of left column
This commit is contained in:
parent
16d75b23a8
commit
f0509d080a
@ -115,7 +115,7 @@ QSize RiuNightchartsWidget::sizeHint() const
|
|||||||
|
|
||||||
if ( m_showPie )
|
if ( m_showPie )
|
||||||
{
|
{
|
||||||
int maxPieSize = 350;
|
int maxPieSize = 300;
|
||||||
|
|
||||||
widthHint = widthHint + maxPieSize;
|
widthHint = widthHint + maxPieSize;
|
||||||
heightHint = heightHint > maxPieSize ? heightHint : maxPieSize;
|
heightHint = heightHint > maxPieSize ? heightHint : maxPieSize;
|
||||||
|
@ -69,10 +69,10 @@ RiuWellAllocationPlot::RiuWellAllocationPlot( RimWellAllocationPlot* plotDefinit
|
|||||||
mainLayout->addWidget( m_titleLabel, 0, Qt::AlignCenter );
|
mainLayout->addWidget( m_titleLabel, 0, Qt::AlignCenter );
|
||||||
|
|
||||||
auto plotWidgetsLayout = new QHBoxLayout();
|
auto plotWidgetsLayout = new QHBoxLayout();
|
||||||
auto rightColumnLayout = new QVBoxLayout();
|
auto leftColumnLayout = new QVBoxLayout();
|
||||||
|
|
||||||
mainLayout->addLayout( plotWidgetsLayout );
|
mainLayout->addLayout( plotWidgetsLayout );
|
||||||
plotWidgetsLayout->addLayout( rightColumnLayout );
|
plotWidgetsLayout->addLayout( leftColumnLayout );
|
||||||
|
|
||||||
m_legendWidget = new RiuNightchartsWidget( this );
|
m_legendWidget = new RiuNightchartsWidget( this );
|
||||||
new RiuPlotObjectPicker( m_legendWidget, m_plotDefinition->plotLegend() );
|
new RiuPlotObjectPicker( m_legendWidget, m_plotDefinition->plotLegend() );
|
||||||
@ -81,17 +81,17 @@ RiuWellAllocationPlot::RiuWellAllocationPlot( RimWellAllocationPlot* plotDefinit
|
|||||||
menuBuilder << "RicShowTotalAllocationDataFeature";
|
menuBuilder << "RicShowTotalAllocationDataFeature";
|
||||||
new RiuContextMenuLauncher( m_legendWidget, menuBuilder );
|
new RiuContextMenuLauncher( m_legendWidget, menuBuilder );
|
||||||
|
|
||||||
rightColumnLayout->addWidget( m_legendWidget );
|
leftColumnLayout->addWidget( m_legendWidget );
|
||||||
m_legendWidget->showPie( false );
|
m_legendWidget->showPie( false );
|
||||||
|
|
||||||
QWidget* totalFlowAllocationWidget = m_plotDefinition->totalWellFlowPlot()->createViewWidget( this );
|
QWidget* totalFlowAllocationWidget = m_plotDefinition->totalWellFlowPlot()->createViewWidget( this );
|
||||||
new RiuPlotObjectPicker( totalFlowAllocationWidget, m_plotDefinition->totalWellFlowPlot() );
|
new RiuPlotObjectPicker( totalFlowAllocationWidget, m_plotDefinition->totalWellFlowPlot() );
|
||||||
new RiuContextMenuLauncher( totalFlowAllocationWidget, menuBuilder );
|
new RiuContextMenuLauncher( totalFlowAllocationWidget, menuBuilder );
|
||||||
|
|
||||||
rightColumnLayout->addWidget( totalFlowAllocationWidget, Qt::AlignTop );
|
leftColumnLayout->addWidget( totalFlowAllocationWidget, Qt::AlignTop );
|
||||||
rightColumnLayout->addWidget( m_plotDefinition->tofAccumulatedPhaseFractionsPlot()->createViewWidget( this ),
|
leftColumnLayout->addWidget( m_plotDefinition->tofAccumulatedPhaseFractionsPlot()->createViewWidget( this ),
|
||||||
Qt::AlignTop );
|
Qt::AlignTop );
|
||||||
rightColumnLayout->addStretch();
|
leftColumnLayout->addStretch();
|
||||||
|
|
||||||
QWidget* wellFlowWidget = m_plotDefinition->accumulatedWellFlowPlot()->createPlotWidget();
|
QWidget* wellFlowWidget = m_plotDefinition->accumulatedWellFlowPlot()->createPlotWidget();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user