Thanks for answer, Thomas.

I just what to disconnect standard action and to connect it to my slot.
It's the most common case, because from the box KSNI ALWAYS asks quit or
not before on "Exit" press.
And many apps connects "quit" triggering to a custom slots...

But i don't see how it can be done with current KSNI.
I'll file a bug :)

On Tue, Jun 23, 2015 at 8:30 AM, Thomas Lübking <thomas.luebk...@gmail.com>
wrote:

> On Dienstag, 23. Juni 2015 00:06:13 CEST, Albert Astals Cid wrote:
>
>> El Dimarts, 23 de juny de 2015, a les 07:50:49, Vladimir Perepechin va
>> escriure:
>>
>>> 23 июня 2015 г. 8:41 пользователь "Albert Astals Cid" <aa...@kde.org>
>>>
>>> написал: ...
>>>
>>
>> tsdgeos@xps:~$ ls /usr/include/KF5/KXmlGui/kactioncollection.h
>> /usr/include/KF5/KXmlGui/kactioncollection.h
>>
>> Yes, there is KActionCollection.
>>
>
> =)
>
> Despite this could become a funny discussion, his problem is that
> KStatusNotifierItem turned the map between action index key and action
> private - you can get all actions, but not the keys that index them, nor an
> action for an index.
>
> @Vladimir
> a) are you sure you need direct access to the quit action (hint: if you
> wanted to remove it in order to enable standard actions, the answer is "no")
> b) file a bug against frameworks-knotifications and ask for a public
> "QAction *action(const QString index) const" member to KStatusNotifierItem
>
> Cheers,
> Thomas
>

Reply via email to