##// END OF EJS Templates
Adds "hybrid" server mode...
Adds "hybrid" server mode Hybrid mode allows to use both the default server and the test server, depending on the "server" setting of each product in the JSON file

File last commit:

r533:aa387fab3c40
r1118:7dc72cc510ff
Show More
SqpSettingsDefs.cpp
18 lines | 637 B | text/x-c | CppLexer
/ core / src / Settings / SqpSettingsDefs.cpp
Alexandre Leroux
Settings binding (1)...
r466 #include "Settings/SqpSettingsDefs.h"
Add toleranceValue method in the SqpSettingsDef class
r533 #include <QSettings>
/// Gets a tolerance value from application settings. If the setting can't be found, the default
/// value passed in parameter is returned
double SqpSettings::toleranceValue(const QString &key, double defaultValue) noexcept
{
return QSettings{}.value(key, defaultValue).toDouble();
}
Alexandre Leroux
Settings binding (1)...
r466 const QString GENERAL_TOLERANCE_AT_INIT_KEY = QStringLiteral("toleranceInit");
const double GENERAL_TOLERANCE_AT_INIT_DEFAULT_VALUE = 0.2;
const QString GENERAL_TOLERANCE_AT_UPDATE_KEY = QStringLiteral("toleranceUpdate");
const double GENERAL_TOLERANCE_AT_UPDATE_DEFAULT_VALUE = 0.2;