D24944: [scripting] Provide conversion functions for AbstractClient

Vlad Zahorodnii <[email protected]>
Newsgroups gmane.comp.kde.devel.kwin
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.