mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#855 Update font size for time axis
This commit is contained in:
@@ -123,6 +123,8 @@ void RimSummaryPlot::updateAxes()
|
|||||||
updateAxis(RimDefines::PLOT_AXIS_RIGHT);
|
updateAxis(RimDefines::PLOT_AXIS_RIGHT);
|
||||||
|
|
||||||
updateZoomInQwt();
|
updateZoomInQwt();
|
||||||
|
|
||||||
|
updateTimeAxis();
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
@@ -205,6 +207,19 @@ std::vector<RimSummaryCurve*> RimSummaryPlot::curvesForAxis(RimDefines::PlotAxis
|
|||||||
return curves;
|
return curves;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
///
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
void RimSummaryPlot::updateTimeAxis()
|
||||||
|
{
|
||||||
|
if (!m_qwtPlot) return;
|
||||||
|
|
||||||
|
QFont timeAxisFont = m_qwtPlot->axisFont(QwtPlot::xBottom);
|
||||||
|
timeAxisFont.setBold(false);
|
||||||
|
timeAxisFont.setPixelSize(m_timeAxisProperties->fontSize);
|
||||||
|
m_qwtPlot->setAxisFont(QwtPlot::xBottom, timeAxisFont);
|
||||||
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -93,6 +93,9 @@ private:
|
|||||||
void updateAxis(RimDefines::PlotAxis plotAxis);
|
void updateAxis(RimDefines::PlotAxis plotAxis);
|
||||||
std::vector<RimSummaryCurve*> curvesForAxis(RimDefines::PlotAxis plotAxis) const;
|
std::vector<RimSummaryCurve*> curvesForAxis(RimDefines::PlotAxis plotAxis) const;
|
||||||
|
|
||||||
|
void updateTimeAxis();
|
||||||
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
caf::PdmField<bool> m_showWindow;
|
caf::PdmField<bool> m_showWindow;
|
||||||
caf::PdmField<QString> m_userName;
|
caf::PdmField<QString> m_userName;
|
||||||
|
|||||||
Reference in New Issue
Block a user