mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Well Allocation: Show legend below pie chart
This commit is contained in:
parent
883622c71d
commit
4ee9af96c3
@ -74,21 +74,27 @@ RiuWellAllocationPlot::RiuWellAllocationPlot( RimWellAllocationPlot* plotDefinit
|
||||
mainLayout->addLayout( plotWidgetsLayout );
|
||||
plotWidgetsLayout->addLayout( leftColumnLayout );
|
||||
|
||||
m_legendWidget = new RiuNightchartsWidget( this );
|
||||
new RiuPlotObjectPicker( m_legendWidget, m_plotDefinition->plotLegend() );
|
||||
|
||||
caf::CmdFeatureMenuBuilder menuForSubWidgets;
|
||||
menuForSubWidgets << "RicShowTotalAllocationDataFeature";
|
||||
new RiuContextMenuLauncher( m_legendWidget, menuForSubWidgets );
|
||||
|
||||
leftColumnLayout->addWidget( m_legendWidget );
|
||||
m_legendWidget->showPie( false );
|
||||
{
|
||||
QWidget* totalFlowAllocationWidget = m_plotDefinition->totalWellFlowPlot()->createViewWidget( this );
|
||||
new RiuPlotObjectPicker( totalFlowAllocationWidget, m_plotDefinition->totalWellFlowPlot() );
|
||||
new RiuContextMenuLauncher( totalFlowAllocationWidget, menuForSubWidgets );
|
||||
|
||||
QWidget* totalFlowAllocationWidget = m_plotDefinition->totalWellFlowPlot()->createViewWidget( this );
|
||||
new RiuPlotObjectPicker( totalFlowAllocationWidget, m_plotDefinition->totalWellFlowPlot() );
|
||||
new RiuContextMenuLauncher( totalFlowAllocationWidget, menuForSubWidgets );
|
||||
leftColumnLayout->addWidget( totalFlowAllocationWidget, Qt::AlignTop );
|
||||
}
|
||||
|
||||
{
|
||||
m_legendWidget = new RiuNightchartsWidget( this );
|
||||
new RiuPlotObjectPicker( m_legendWidget, m_plotDefinition->plotLegend() );
|
||||
|
||||
new RiuContextMenuLauncher( m_legendWidget, menuForSubWidgets );
|
||||
|
||||
leftColumnLayout->addWidget( m_legendWidget );
|
||||
m_legendWidget->showPie( false );
|
||||
}
|
||||
|
||||
leftColumnLayout->addWidget( totalFlowAllocationWidget, Qt::AlignTop );
|
||||
leftColumnLayout->addWidget( m_plotDefinition->tofAccumulatedPhaseFractionsPlot()->createViewWidget( this ), Qt::AlignTop );
|
||||
leftColumnLayout->addStretch();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user