#3098 Show depth axis only for left-most plot. They all share the same depth axis anyway.

This commit is contained in:
Gaute Lindkvist
2018-06-26 10:38:44 +02:00
parent f0bd7c726a
commit 405d470eda
5 changed files with 34 additions and 4 deletions

View File

@@ -261,3 +261,17 @@ bool RiuWellLogTrack::isRimTrackVisible()
return false;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RiuWellLogTrack::enableVerticalAxisLabelsAndTitle(bool enable)
{
QString depthAxisTitle("");
if (enable && m_plotTrackDefinition)
{
depthAxisTitle = m_plotTrackDefinition->depthPlotTitle();
}
this->setAxisTitle(QwtPlot::yLeft, depthAxisTitle);
this->axisScaleDraw(QwtPlot::yLeft)->enableComponent(
QwtAbstractScaleDraw::Labels, enable);
}