<div dir="ltr">Thanks for answer, Thomas.<div><br></div><div>I just what to disconnect standard action and to connect it to my slot.</div><div>It's the most common case, because from the box KSNI ALWAYS asks quit or not before on "Exit" press.</div><div>And many apps connects "quit" triggering to a custom slots...</div><div><br></div><div>But i don't see how it can be done with current KSNI.</div><div>I'll file a bug :)</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 23, 2015 at 8:30 AM, Thomas Lübking <span dir="ltr"><<a href="mailto:thomas.luebking@gmail.com" target="_blank">thomas.luebking@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Dienstag, 23. Juni 2015 00:06:13 CEST, Albert Astals Cid wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
El Dimarts, 23 de juny de 2015, a les 07:50:49, Vladimir Perepechin va escriure:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
23 июня 2015 г. 8:41 пользователь "Albert Astals Cid" <<a href="mailto:aacid@kde.org" target="_blank">aacid@kde.org</a>><br>
<br></span>
написал: ...<br>
</blockquote><span class="">
<br>
tsdgeos@xps:~$ ls /usr/include/KF5/KXmlGui/kactioncollection.h /usr/include/KF5/KXmlGui/kactioncollection.h<br>
<br>
Yes, there is KActionCollection.<br>
</span></blockquote>
<br>
=)<br>
<br>
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.<br>
<br>
@Vladimir<br>
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")<br>
b) file a bug against frameworks-knotifications and ask for a public "QAction *action(const QString index) const" member to KStatusNotifierItem<br>
<br>
Cheers,<br>
Thomas<br>
</blockquote></div><br></div>