Adding simple API / freeze in effect?
Olivier Goffart
ogoffart at kde.org
Wed Nov 14 23:22:20 GMT 2007
Le mercredi 14 novembre 2007, Thomas Friedrichsmeier a écrit :
> Hi,
>
> just a quick question, as I've not been following KDE core development, but
> just ran into a small issue while porting RKWard to KDE4: Is it ok to add
> some simple API in kdelibs? Or is there a freeze in effect? Any chance left
> for the addition before the 4.0 release?
>
> The addition I have in mind is this:
>
> KUrl::List KRecentFilesAction::urls () const {
> KUrl::List ret;
>
> for (QMap<QAction*, KUrl>::ConstIterator it = d->m_urls.constBegin(); it
> != d->m_urls.constEnd(); ++it)
> ret.append (it.value());
> }
>
> return ret;
> }
Do you know the existence of QMap::values() ?
It would make the code shorter.
(But would require to return QList<KUrl>)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20071115/d2e2975f/attachment.sig>
More information about the kde-core-devel
mailing list