0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-11-07 00:21:24 +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

@@ -29,14 +29,15 @@
****************************************************************************/
#ifndef LRSCRIPTENGINEMANAGER_H
#define LRSCRIPTENGINEMANAGER_H
#ifndef USE_QJSENGINE
#include <QtScript/QScriptEngine>
#include <QScriptable>
#endif
#include <QVector>
#include <QIcon>
#include <QAbstractItemModel>
#include <QDebug>
#include <QtGlobal>
#include <QScriptable>
#include <QFont>
#include <QComboBox>
@@ -440,6 +441,7 @@ private:
};
#ifndef USE_QJSENGINE
class QFontPrototype : public QObject, public QScriptable {
Q_OBJECT
Q_PROPERTY(QString family READ family)
@@ -486,9 +488,9 @@ public:
return qScriptValueFromValue<QFont>(engine, font);
}
};
#endif
}
#ifndef USE_QJSENGINE
Q_DECLARE_METATYPE(LimeReport::ComboBoxPrototype*)
Q_DECLARE_METATYPE(QComboBox*)