(#431) Turning toggle field off when removing well log plot viewer widget

This commit is contained in:
Pål Hagen 2015-09-08 10:21:33 +02:00
parent 5ce0f6988d
commit 1000c96c3e
2 changed files with 8 additions and 1 deletions

View File

@ -62,6 +62,8 @@ public:
void updateAxisRanges(); void updateAxisRanges();
void setVisibleDepthRangeFromContents(); void setVisibleDepthRangeFromContents();
caf::PdmField<bool> showWindow;
protected: protected:
// Overridden PDM methods // Overridden PDM methods
@ -80,7 +82,6 @@ private:
private: private:
QPointer<RiuWellLogPlot> m_viewer; QPointer<RiuWellLogPlot> m_viewer;
caf::PdmField<bool> showWindow;
caf::PdmField< std::vector<int> > windowGeometry; caf::PdmField< std::vector<int> > windowGeometry;
caf::PdmChildArrayField<RimWellLogPlotTrace*> traces; caf::PdmChildArrayField<RimWellLogPlotTrace*> traces;

View File

@ -57,6 +57,12 @@ RiuWellLogPlot::RiuWellLogPlot(RimWellLogPlot* plotDefinition, QWidget* parent)
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
RiuWellLogPlot::~RiuWellLogPlot() RiuWellLogPlot::~RiuWellLogPlot()
{ {
if (m_plotDefinition)
{
m_plotDefinition->showWindow = false;
m_plotDefinition->uiCapability()->updateUiIconFromToggleField();
m_plotDefinition->updateConnectedEditors();
}
} }
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------