KEditListBox and KConfigDialogManager

Richard L ärkäng nouseforaname at home.se
Sun Sep 5 18:02:59 BST 2004


Hi!

I added support for KConfigXT in the kcm for libkcddb, and ran into some
problems.

Now I have a QListBox with items where I need to store all of the items,
which isn't possible with the properties there is now, it will only save
the one which is selected.

But then I realized that KEditListBox would be better suited for what I
want to do, but it doesn't work very well with KConfigDialogManager,
because it doesn't have any properties (although the default is set to
"currentItem" in KApplication).

So I'm wondering if I could set the default property to "items" in
KApplication for KEditListBox and add that property to KEditListBox and
also add a method setItems(). It won't break any applications because it
didn't have any properties before, and also when looking through some
places where KEditListBox is used, items() seems to be used a lot more
than currentItem().

The attached patches does that, can I commit?

Btw, the example in KConfigDialogManager about adding a new widget to
the propertymap crashed on me, and the attached patch seems more correct,
can I commit that too?

Richard Lärkäng



-------------- next part --------------
A non-text attachment was scrubbed...
Name: keditlistbox-defaultproperty.patch
Type: text/x-diff
Size: 770 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20040905/80e7cc67/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: keditlistbox-items-property.patch
Type: text/x-diff
Size: 1354 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20040905/80e7cc67/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kconfigdialogmanager-example.patch
Type: text/x-diff
Size: 745 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20040905/80e7cc67/attachment-0002.patch>


More information about the kde-core-devel mailing list