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

List:       kde-devel
Subject:    Re: QComboBox with KConfigDialog
From:       Waldo Bastian <bastian () kde ! org>
Date:       2004-02-06 17:12:34
Message-ID: 200402061812.34205.bastian () kde ! org
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri February 6 2004 18:09, Mark Kretschmann wrote:
> On Friday 06 February 2004 17:39, Waldo Bastian wrote:
> > On Fri February 6 2004 17:33, Mark Kretschmann wrote:
> > > Hi,
> > >
> > > I would like to manage a QComboBox inside of a KConfigDialog. Trouble
> > > is, the choices consist of a computed QStringList, and are not known at
> > > compile time; so I cannot put it into the <choices> tag of the kcfg
> > > file.
> > >
> > > Can KConfigXT manage that situation, or do I have to special case the
> > > widget and do it manually?
> >
> > If you have an editable QComboBox you can map it to a String type. If
> > that's not appropriate then you will have to handle it manually.
>
> Unfortunately, handling it manually (embedded in a KConfigDialog page)
> seems to confuse the apply-button logic: the button is always enabled.

Make sure to remove the "kcfg_" prefix from the name of the combobox and 
reimplement isDefault() and hasChanged() of KConfigDialog

Cheers,
Waldo
- -- 
bastian@kde.org -=|[ SUSE, The Linux Desktop Experts ]|=- bastian@suse.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQFAI8sCN4pvrENfboIRAo/VAJ41LAgc14Pnkdmsjb9YbFSc4rpOtQCfSKdu
I3+i7XscMawpGaAJ5Hp3WGA=
=eVv3
-----END PGP SIGNATURE-----
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

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

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