Setting specific font size in the overlay items during regression tests

Made sure that we always use the same bitmap size for the fonts of the
overlay items when running regression tests, to avoid differences from
reference runs.
This commit is contained in:
Pål Hagen 2015-06-26 13:47:33 +02:00
parent 91adc80f90
commit 7a3d43d29d

View File

@ -157,6 +157,16 @@ RiuViewer::RiuViewer(const QGLFormat& format, QWidget* parent)
m_viewerCommands = new RiuViewerCommands(this); m_viewerCommands = new RiuViewerCommands(this);
if (RiaApplication::instance()->isRunningRegressionTests())
{
QFont regTestFont = m_InfoLabel->font();
regTestFont.setPixelSize(11);
m_InfoLabel->setFont(regTestFont);
m_versionInfoLabel->setFont(regTestFont);
m_animationProgress->setFont(regTestFont);
m_histogramWidget->setFont(regTestFont);
}
} }