Wip: Separated cretion of Qwt classes from Rim construction

This needs to be done because MDI window close window deletes the widgets.
We need to be able to recreate all the widgets/qwt objects when needed.
The QwtPlotCurves still crashes on window close/open
This commit is contained in:
Jacob Støren
2015-09-03 14:21:08 +02:00
parent 6a6973f3d4
commit 7b308e514c
5 changed files with 83 additions and 67 deletions

View File

@@ -54,17 +54,17 @@ public:
void updateAvailableDepthRange();
bool availableDepthRange(double* minimumDepth, double* maximumDepth);
void visibleDepthRange(double* minimumDepth, double* maximumDepth);
void visibleDepthRange(double* minimumDepth, double* maximumDepth) const;
void updateAxisRanges();
protected:
// Overridden PDM methods
virtual void fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue);
virtual void initAfterRead();
virtual void setupBeforeSave();
private:
void updateViewerWidget();
void recreateTracePlots();
virtual caf::PdmFieldHandle* objectToggleField();