mirror of
https://github.com/OPM/ResInsight.git
synced 2026-09-03 20:53:13 -05:00
Hide the main plot collection level in the project tree
"Well Log Plots" will be visible on the top level if there are plots.
This commit is contained in:
@@ -18,10 +18,14 @@
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "RimWellLogPlotCollection.h"
|
||||
|
||||
#include "RimWellLogPlot.h"
|
||||
#include "RimProject.h"
|
||||
|
||||
#include "RiuMainWindow.h"
|
||||
|
||||
#include "RiaApplication.h"
|
||||
|
||||
#include "cafPdmUiTreeView.h"
|
||||
|
||||
CAF_PDM_SOURCE_INIT(RimWellLogPlotCollection, "WellLogPlotCollection");
|
||||
@@ -67,9 +71,9 @@ caf::PdmFieldHandle* RimWellLogPlotCollection::objectToggleField()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimWellLogPlotCollection::addWellLogPlot()
|
||||
{
|
||||
RimWellLogPlot* view = new RimWellLogPlot();
|
||||
wellLogPlots.push_back(view);
|
||||
RimWellLogPlot* plot = new RimWellLogPlot();
|
||||
wellLogPlots.push_back(plot);
|
||||
|
||||
RiuMainWindow::instance()->projectTreeView()->setExpanded(this, true);
|
||||
updateConnectedEditors();
|
||||
RiaApplication::instance()->project()->updateConnectedEditors();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user