mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Hide summary multiplot tree node if only one summary plot
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user