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

List:       kde-panel-devel
Subject:    Re: exporting/importing config keys? plus: Mandelbrot news
From:       "Aaron J. Seigo" <aseigo () kde ! org>
Date:       2010-03-15 17:52:31
Message-ID: 201003151052.32431.aseigo () kde ! org
[Download RAW message or body]

On March 13, 2010, Benoit Jacob wrote:
>     contextualActions().append(&m_exportImageAction);
>     contextualActions().append(&m_exportConfigAction);
>     contextualActions().append(&m_importConfigAction);

the append() is being called on a copy of the collection. as soon as you 
change the return value from contextualActions(), the internal data structure 
detatches from the original, shared one and copies the values over. so this 
obviously has no effect.

what you are looking for is setContextualActions.

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Development Frameworks
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

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