forked from qt-creator/qt-creator
AutoTest: Simplify settings handling
There is no need to check complete settings whether something has changed before setting them. Limit the check to what is needed and remove unneeded functionality. Change-Id: Icdf99d89d795edc20338a774ca7e90b1e4f1e417 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -128,23 +128,6 @@ void TestSettings::fromSettings(const QSettings *s)
|
||||
}
|
||||
}
|
||||
|
||||
bool TestSettings::equals(const TestSettings &rhs) const
|
||||
{
|
||||
return timeout == rhs.timeout && metrics == rhs.metrics
|
||||
&& omitInternalMssg == rhs.omitInternalMssg
|
||||
&& omitRunConfigWarn == rhs.omitRunConfigWarn
|
||||
&& limitResultOutput == rhs.limitResultOutput
|
||||
&& autoScroll == rhs.autoScroll
|
||||
&& alwaysParse == rhs.alwaysParse
|
||||
&& qtestNoCrashHandler == rhs.qtestNoCrashHandler
|
||||
&& gtestRunDisabled == rhs.gtestRunDisabled
|
||||
&& gtestRepeat == rhs.gtestRepeat && gtestIterations == rhs.gtestIterations
|
||||
&& gtestShuffle == rhs.gtestShuffle && gtestSeed == rhs.gtestSeed
|
||||
&& gtestBreakOnFailure == rhs.gtestBreakOnFailure
|
||||
&& gtestThrowOnFailure == rhs.gtestThrowOnFailure
|
||||
&& frameworks == rhs.frameworks;
|
||||
}
|
||||
|
||||
QString TestSettings::metricsTypeToOption(const MetricsType type)
|
||||
{
|
||||
switch (type) {
|
||||
|
||||
Reference in New Issue
Block a user