Showing the changes to interface/src/scripting/WebWindowClass.cpp (1 of 3 files). Show all
Unified · Split
| @@ -56,7 +56,7 @@ void WebWindowClass::setVisible(bool visible) { · 55 unmodified lines | ||
| 56 | 56 | QScriptValue WebWindowClass::constructor(QScriptContext* context, QScriptEngine* engine) { |
| 57 | 57 | WebWindowClass* retVal; |
| 58 | 58 | QString file = context->argument(0).toString(); |
| 59 | − QMetaObject::invokeMethod(WindowScriptingInterface::getInstance(), "doCreateWebWindowClass", Qt::BlockingQueuedConnection, | |
| 59 | + QMetaObject::invokeMethod(WindowScriptingInterface::getInstance(), "doCreateWebWindow", Qt::BlockingQueuedConnection, | |
| 60 | 60 | Q_RETURN_ARG(WebWindowClass*, retVal), |
| 61 | 61 | Q_ARG(const QString&, file), |
| 62 | 62 | Q_ARG(int, context->argument(1).toInteger()), |
| @@ -64,5 +64,5 @@ QScriptValue WebWindowClass::constructor(QScriptContext* context, QScriptEngine* · 1 unmodified line | ||
| 64 | 64 | |
| 65 | 65 | connect(engine, &QScriptEngine::destroyed, retVal, &WebWindowClass::deleteLater); |
| 66 | 66 | |
| 67 | − return engine->newQObject(retVal);//, QScriptEngine::ScriptOwnership); | |
| 67 | + return engine->newQObject(retVal); | |
| 68 | 68 | } |