D24944: [scripting] Provide conversion functions for AbstractClient

Vlad Zahorodnii noreply at phabricator.kde.org
Fri Oct 25 15:02:45 BST 2019


zzag created this revision.
zzag added a reviewer: KWin.
Herald added a project: KWin.
Herald added a subscriber: kwin.
zzag requested review of this revision.

REVISION 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.

REPOSITORY
  R108 KWin

BRANCH
  fix-minimize-all

REVISION DETAIL
  https://phabricator.kde.org/D24944

AFFECTED FILES
  autotests/integration/scripting/CMakeLists.txt
  autotests/integration/scripting/minimizeall_test.cpp
  scripting/meta.cpp
  scripting/meta.h
  scripts/CMakeLists.txt

To: zzag, #kwin
Cc: kwin, LeGast00n, The-Feren-OS-Dev, sbergeron, jraleigh, fbampaloukas, GB_2, mkulinski, ragreen, jackyalcine, iodelay, crozbo, bwowk, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, hardening, romangg, jensreuterberg, abetts, sebas, apol, ahiemstra, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kwin/attachments/20191025/02bd26fb/attachment.html>


More information about the kwin mailing list