0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-11-25 00:18:06 +03:00

build without qtscriptengine fixed

This commit is contained in:
Arin Alex
2018-03-22 02:38:42 +03:00
parent 3bbc02507a
commit 01e36f3bbe
5 changed files with 25 additions and 8 deletions

View File

@@ -31,7 +31,9 @@
#include <QDate>
#include <QStringList>
#ifndef USE_QJSENGINE
#include <QScriptValueIterator>
#endif
#include <QMessageBox>
#ifdef HAVE_UI_LOADER
#include <QUiLoader>
@@ -47,11 +49,13 @@ Q_DECLARE_METATYPE(QColor)
Q_DECLARE_METATYPE(QFont)
Q_DECLARE_METATYPE(LimeReport::ScriptEngineManager *)
#ifndef USE_QJSENGINE
QScriptValue constructColor(QScriptContext *context, QScriptEngine *engine)
{
QColor color(context->argument(0).toString());
return engine->toScriptValue(color);
}
#endif
namespace LimeReport{