mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
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:
parent
91adc80f90
commit
7a3d43d29d
@ -157,6 +157,16 @@ RiuViewer::RiuViewer(const QGLFormat& format, QWidget* parent)
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user