abbe84bab4
Getting all functionality from old solution into new one is not really possible. Main problems are that QtScript provided more functionality than the QJSEngine. For example it's no longer possible to just export functions to the engine. We need to have a Qt wrapper object. At the moment this wrapper object doesn't export all functions as the callbacks are tricky. A solution might be to create specific QML types encapsulating functionality which used to be exported on the functions. Nevertheless a basic QML script loads and works and the ported readConfig function works, too. |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
documentation-effect-global.xml | ||
documentation-global.xml | ||
genericscriptedconfig.cpp | ||
genericscriptedconfig.h | ||
kwinscript.desktop | ||
Messages.sh | ||
meta.cpp | ||
meta.h | ||
scriptedeffect.cpp | ||
scriptedeffect.h | ||
scripting.cpp | ||
scripting.h | ||
scripting_model.cpp | ||
scripting_model.h | ||
scriptingutils.cpp | ||
scriptingutils.h | ||
timer.cpp | ||
workspace_wrapper.cpp | ||
workspace_wrapper.h |