From 7a3d43d29d6167694ab0b38e8b8397675a4b8899 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A5l=20Hagen?= Date: Fri, 26 Jun 2015 13:47:33 +0200 Subject: [PATCH] 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. --- ApplicationCode/UserInterface/RiuViewer.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ApplicationCode/UserInterface/RiuViewer.cpp b/ApplicationCode/UserInterface/RiuViewer.cpp index 26fbdb0112..3c1bfe876f 100644 --- a/ApplicationCode/UserInterface/RiuViewer.cpp +++ b/ApplicationCode/UserInterface/RiuViewer.cpp @@ -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); + } }