[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Does Kwin script's callDBus support a{sv} argument type?
From:       Thiago Macieira <thiago () kde ! org>
Date:       2021-03-10 17:14:12
Message-ID: 3110477.1Qq2pIFczp () tjmaciei-mobl1
[Download RAW message or body]

On Wednesday, 10 March 2021 03:43:44 PST Phương Lê Hoà ng wrote:
> I tried to read the source code of callDBus and failed to understand
> whether it supports a{sv} or not, since I'm not familiar with Qt and C++.
> https://invent.kde.org/plasma/kwin/-/blob/master/src/scripting/scripting.cpp
> #L253

This should have worked. Searching the source code shows that 

    for (const QJSValue &jsArgument : qAsConst(jsArguments)) {
         dbusArguments << jsArgument.toVariant();
     } 

Should end up creating a QVariantMap and QtDBus should have understood them to 
create an a{sv}.

Something is broken. You'll need to debug.
-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel DPG Cloud Engineering



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic