[PATCH] new method kstdguiitem::preferences?

Martijn Klingens klingens at kde.org
Sun Sep 21 14:03:57 BST 2003


See patch. I could use it in Kopete because there's no way you can subclass 
KStdAction::preferences(), and duplicating strings and icons inside Kopete 
won't make translators happy, nor would it adapt to changes in kdelibs (other 
string, other icon) if these ever happen.

The code is basically taken from KStdAction::preferences, but I'm not reusing 
it there because the current KStdAction API doesn't easily allow reusing 
KStdGuiItems. Simon said he once had a patch tackling the issue, but he 
forgot what happened with it. It's for sure not in KDE CVS HEAD ;)

And yes, I know we're in a freeze, that's why I'm posting here. Ok to apply?

-- 
Martijn
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kstdguiitem.diff
Type: text/x-diff
Size: 2302 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20030921/8acc7ffa/attachment.diff>


More information about the kde-core-devel mailing list