KActionCollection patch

Simon Hausmann hausmann at kde.org
Sun Feb 4 07:41:09 GMT 2007


On Sunday 04 February 2007 03:38:45 Sebastian Sauer wrote:
> Hi *,
>
> KActionCollection::actions() returns a random sorted list of
> QList<KAction*>. I suggest following patch to preserve the order. Ok to
> commit?

For an API that emulates an associative container (string -> action) I don't 
see the point of preserving the insertion order. I'd be fine with making 
actions() return actionByName.values() though to return the actions sorted by 
the name in ascending order.

Simon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070204/ae1ef83e/attachment.sig>


More information about the kde-core-devel mailing list