Hide summary multiplot tree node if only one summary plot

This commit is contained in:
jonjenssen
2022-03-27 20:25:03 +02:00
committed by jonjenssen
parent ebba37a623
commit 28dcd47d73
4 changed files with 52 additions and 6 deletions

View File

@@ -46,6 +46,7 @@ class RimSummaryMultiPlot : public RimMultiPlot, public RimSummaryDataSourceStep
public:
caf::Signal<RimSummaryMultiPlot*> duplicatePlot;
caf::Signal<RimSummaryMultiPlot*> refreshTree;
public:
RimSummaryMultiPlot();
@@ -73,11 +74,12 @@ public:
void summaryPlotItemInfos( QList<caf::PdmOptionItemInfo>* optionInfos ) const;
std::vector<RimSummaryPlot*> summaryPlots() const;
protected:
bool handleGlobalKeyEvent( QKeyEvent* keyEvent ) override;
bool handleGlobalWheelEvent( QWheelEvent* wheelEvent ) override;
void initAfterRead() override;
private:
@@ -88,11 +90,11 @@ private:
QString uiConfigName,
caf::PdmUiEditorAttribute* attribute ) override;
std::vector<RimSummaryPlot*> summaryPlots() const;
void updatePlotWindowTitle() override;
void duplicate();
void signalRefresh();
void onSubPlotChanged( const caf::SignalEmitter* emitter );
private: