excised qjsengine

This commit is contained in:
itsmattkc
2018-11-04 11:08:18 +11:00
parent 35e4371c7a
commit 68de7c5e82
5 changed files with 5 additions and 9 deletions
+2 -1
View File
@@ -378,7 +378,6 @@ Effect::Effect(Clip* c, const EffectMeta *em) :
QFile script_file(get_effects_dir() + "/" + attr.value().toString());
if (script_file.open(QFile::ReadOnly)) {
script = script_file.readAll();
wrapper_obj = jsEngine.newQObject(&painter_wrapper);
} else {
dout << "[ERROR] Failed to open superimpose script file for" << em->filename;
enable_superimpose = false;
@@ -801,6 +800,7 @@ void Effect::process_audio(double timecode_start, double timecode_end, quint8* s
}
void Effect::redraw(double timecode) {
/*
// run javascript
QPainter p(&img);
painter_wrapper.img = &img;
@@ -840,6 +840,7 @@ void Effect::redraw(double timecode) {
}
jsEngine.evaluate(script);
*/
}
bool Effect::valueHasChanged(double timecode) {
-3
View File
@@ -8,7 +8,6 @@
#include <QOpenGLFunctions>
#include <QOpenGLShaderProgram>
#include <QOpenGLTexture>
#include <QJSEngine>
#include <QMutex>
#include <QThread>
class QLabel;
@@ -246,8 +245,6 @@ protected:
QOpenGLTexture* texture;
private:
// superimpose effect
QJSEngine jsEngine;
QJSValue wrapper_obj;
QString script;
bool isOpen;