#3136 Fix RFT/PLT plots and refactor the way Mdi windows are resized when adding/removing plot tracks.

This commit is contained in:
Gaute Lindkvist
2018-07-03 12:54:51 +02:00
parent 28993dae49
commit 4112682b6a
13 changed files with 143 additions and 138 deletions

View File

@@ -90,7 +90,7 @@ void RiuWellLogTrack::setDefaults()
axisScaleEngine(QwtPlot::xTop)->setAttribute(QwtScaleEngine::Floating, true);
axisScaleEngine(QwtPlot::yLeft)->setAttribute(QwtScaleEngine::Floating, true);
setAxisScale(QwtPlot::yLeft, 1000, 0);
setAxisScale(QwtPlot::xTop, -10, 100);
setXRange(0, 100);
}
@@ -330,7 +330,7 @@ void RiuWellLogTrack::setAutoTickIntervalCounts(int maxMajorTickIntervalCount, i
this->setAxisMaxMinor(QwtPlot::xTop, maxMinorTickIntervalCount);
// Reapply axis limits to force Qwt to use the tick settings.
QwtInterval currentRange = this->axisInterval(QwtPlot::xTop);
this->setAxisScale(QwtPlot::xTop, currentRange.minValue(), currentRange.maxValue());
this->setXRange(currentRange.minValue(), currentRange.maxValue());
}
//--------------------------------------------------------------------------------------------------