kwin/scripting
Vlad Zahorodnii a738ecce85 [scripting] Provide conversion functions for AbstractClient
Summary:
If no conversion functions are provided for a QObject-subclass, then
QScriptEngine will use QScriptEngine::newQObject() method without any
special options to convert an instance of that QObject-subclass to a
QScriptValue. However, it's very important that every client object is
wrapped with PreferExistingWrapperObject option. We need that option
because a script may set a property on a client object and that property
must remain until it's deleted by the script.

BUG: 413044
FIXED-IN: 5.17.2

Test Plan: New test.

Reviewers: #kwin, davidedmundson

Reviewed By: #kwin, davidedmundson

Subscribers: davidedmundson, kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D24944
2019-10-25 17:39:45 +03:00
..
CMakeLists.txt Cleanup style in CMakeLists.txt files 2019-09-17 16:03:05 +03:00
dbuscall.cpp
dbuscall.h Use nullptr everywhere 2019-09-19 17:48:21 +03:00
documentation-effect-global.xml
documentation-global.xml
genericscriptedconfig.cpp
genericscriptedconfig.h
genericscriptedconfig.json
kwinscript.desktop
Messages.sh
meta.cpp [scripting] Provide conversion functions for AbstractClient 2019-10-25 17:39:45 +03:00
meta.h [scripting] Provide conversion functions for AbstractClient 2019-10-25 17:39:45 +03:00
screenedgeitem.cpp
screenedgeitem.h Use nullptr everywhere 2019-09-19 17:48:21 +03:00
scriptedeffect.cpp
scriptedeffect.h
scripting.cpp Port away from deprecated qVariantFromValue 2019-09-18 16:20:06 +03:00
scripting.h
scripting_logging.cpp
scripting_logging.h
scripting_model.cpp Port away from deprecated qVariantFromValue 2019-09-18 16:20:06 +03:00
scripting_model.h
scriptingutils.cpp
scriptingutils.h
timer.cpp
workspace_wrapper.cpp Use nullptr everywhere 2019-09-19 17:48:21 +03:00
workspace_wrapper.h