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:
@@ -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{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user