mirror of
https://github.com/fralx/LimeReport.git
synced 2024-12-25 00:54:39 +03:00
Finish 1.5.35
This commit is contained in:
commit
e943700b5b
@ -127,7 +127,7 @@ RCC_DIR = $${ARCH_DIR}/$${BUILD_TYPE}/rcc
|
|||||||
|
|
||||||
LIMEREPORT_VERSION_MAJOR = 1
|
LIMEREPORT_VERSION_MAJOR = 1
|
||||||
LIMEREPORT_VERSION_MINOR = 5
|
LIMEREPORT_VERSION_MINOR = 5
|
||||||
LIMEREPORT_VERSION_RELEASE = 33
|
LIMEREPORT_VERSION_RELEASE = 35
|
||||||
|
|
||||||
LIMEREPORT_VERSION = '$${LIMEREPORT_VERSION_MAJOR}.$${LIMEREPORT_VERSION_MINOR}.$${LIMEREPORT_VERSION_RELEASE}'
|
LIMEREPORT_VERSION = '$${LIMEREPORT_VERSION_MAJOR}.$${LIMEREPORT_VERSION_MINOR}.$${LIMEREPORT_VERSION_RELEASE}'
|
||||||
DEFINES *= LIMEREPORT_VERSION_STR=\\\"$${LIMEREPORT_VERSION}\\\"
|
DEFINES *= LIMEREPORT_VERSION_STR=\\\"$${LIMEREPORT_VERSION}\\\"
|
||||||
|
@ -279,19 +279,19 @@ bool ScriptEngineManager::addFunction(const QString& name,
|
|||||||
const QString& category,
|
const QString& category,
|
||||||
const QString& description)
|
const QString& description)
|
||||||
{
|
{
|
||||||
if (!containsFunction(name)){
|
if (!isFunctionExists(name)){
|
||||||
ScriptFunctionDesc funct;
|
ScriptFunctionDesc funct;
|
||||||
funct.name = name;
|
funct.name = name;
|
||||||
funct.description = description;
|
funct.description = description;
|
||||||
funct.category = category;
|
funct.category = category;
|
||||||
funct.scriptValue = scriptEngine()->newFunction(function);
|
funct.scriptValue = scriptEngine()->newFunction(function);
|
||||||
funct.scriptValue.setProperty("functionName",name);
|
funct.scriptValue.setProperty("functionName", name);
|
||||||
funct.scriptValue.setData(m_scriptEngine->toScriptValue(this));
|
funct.scriptValue.setData(m_scriptEngine->toScriptValue(this));
|
||||||
funct.type = ScriptFunctionDesc::Native;
|
funct.type = ScriptFunctionDesc::Native;
|
||||||
m_functions.append(funct);
|
m_functions.insert(name, funct);
|
||||||
if (m_model)
|
if (m_model)
|
||||||
m_model->updateModel();
|
m_model->updateModel();
|
||||||
m_scriptEngine->globalObject().setProperty(funct.name,funct.scriptValue);
|
m_scriptEngine->globalObject().setProperty(funct.name, funct.scriptValue);
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user