[System] Added support for display of regression images on top of each other in regression report

Use a slider concept (using CSS) to switch between generated and base
image
This commit is contained in:
Magne Sjaastad
2016-01-11 07:59:44 +01:00
parent f7d5d92029
commit 5fb04e9526
5 changed files with 106 additions and 2 deletions

View File

@@ -1757,6 +1757,19 @@ void RiaApplication::runRegressionTest(const QString& testRootPath)
RiaImageCompareReporter imageCompareReporter;
// Minor workaround
// Use registry to define if interactive diff images should be created
// Defined by user in RiaRegressionTest
{
QSettings settings;
bool useInteractiveDiff = settings.value("showInteractiveDiffImages").toBool();
if (useInteractiveDiff)
{
imageCompareReporter.showInteractiveOnly();
}
}
for (int dirIdx = 0; dirIdx < folderList.size(); ++dirIdx)
{
QDir testCaseFolder(folderList[dirIdx].filePath());