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:
@@ -49,7 +49,6 @@ struct TestSettings
|
||||
TestSettings();
|
||||
void toSettings(QSettings *s) const;
|
||||
void fromSettings(const QSettings *s);
|
||||
bool equals(const TestSettings &rhs) const;
|
||||
static QString metricsTypeToOption(const MetricsType type);
|
||||
|
||||
int timeout;
|
||||
@@ -70,8 +69,5 @@ struct TestSettings
|
||||
QHash<Core::Id, bool> frameworks;
|
||||
};
|
||||
|
||||
inline bool operator==(const TestSettings &s1, const TestSettings &s2) { return s1.equals(s2); }
|
||||
inline bool operator!=(const TestSettings &s1, const TestSettings &s2) { return !s1.equals(s2); }
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace Autotest
|
||||
|
||||
Reference in New Issue
Block a user