##// END OF EJS Templates
Merge branch 'feature/CatalogueCatalogue' of https://hephaistos.lpp.polytechnique.fr/rhodecode/GIT_REPOSITORIES/LPP/Users/mperrinel/SciQLop-fork into feature/CatalogueCatalogue...
Merge branch 'feature/CatalogueCatalogue' of https://hephaistos.lpp.polytechnique.fr/rhodecode/GIT_REPOSITORIES/LPP/Users/mperrinel/SciQLop-fork into feature/CatalogueCatalogue # Conflicts: # core/include/Catalogue/CatalogueController.h # gui/src/Visualization/VisualizationGraphWidget.cpp

File last commit:

r533:aa387fab3c40
r1358:3e0e1e37ac63 merge feature/Catalogue...
Show More
SqpSettingsDefs.cpp
18 lines | 637 B | text/x-c | CppLexer
#include "Settings/SqpSettingsDefs.h"
#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();
}
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;