|
|
@ -8,6 +8,7 @@
|
|
|
|
#include <QMetaProperty>
|
|
|
|
#include <QMetaProperty>
|
|
|
|
|
|
|
|
|
|
|
|
#include <QDecDouble.hh>
|
|
|
|
#include <QDecDouble.hh>
|
|
|
|
|
|
|
|
#include <QDebug>
|
|
|
|
|
|
|
|
|
|
|
|
#include "data/system.h"
|
|
|
|
#include "data/system.h"
|
|
|
|
#include "service.h"
|
|
|
|
#include "service.h"
|
|
|
@ -50,8 +51,19 @@ public:
|
|
|
|
{
|
|
|
|
{
|
|
|
|
QDecDouble dec(TO_DEC(varVal.toInt()));
|
|
|
|
QDecDouble dec(TO_DEC(varVal.toInt()));
|
|
|
|
varVal = QVariant::fromValue(dec);
|
|
|
|
varVal = QVariant::fromValue(dec);
|
|
|
|
|
|
|
|
objSettings->setProperty(propName, varVal);
|
|
|
|
|
|
|
|
continue;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// all other numbers are int
|
|
|
|
|
|
|
|
if (varVal.toInt() > 0)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
objSettings->setProperty(propName, varVal.toInt());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
objSettings->setProperty(propName, varVal);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
objSettings->setProperty(propName, varVal);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return settingsObj;
|
|
|
|
return settingsObj;
|
|
|
|