« Return to Thread: porting int options managed by radio button groups to kde4
Well I have tried changing it to an Enum but without any luck.On Thu, Jul 9, 2009 at 3:06 PM, Alvaro Soliverez<asoliverez@...> wrote:
>
>
> On Thu, Jul 9, 2009 at 2:30 AM, Cristian Oneţ <onet.cristian@...>
> wrote:
>>
>> Hi,
>>
>> It seems that in kde4 KConfigDialog can't manage int configuration options
>> with
>> a radio button group. We have a few options in this situation in kmymoney.
>> According to this
>> http://www.nabble.com/KConfigDialog-to9326936.html#a9327787
>> thread the way to go is to define a bool option for each radio button.
>> Should we follow this path or change the editor widget of the option?
>>
>> --
>
> It kind of sucks to define a bool for each one. It feels like html.
> Do you think there is another suitable method to do it?
Changing the option too "Bool" and naming the corresponding radio
button to kcfg_optionName worked but as you said this sucks because a
radio button group by definition can have only one value. It models an
option with one value from a defined set not several options as the
"Bool" model (since there is no constraint to force two "Bool"
options, in the same radio button group, to have only one "true"
value).
I'll try to check if we can find a better way. If not the UI files
must be changed. What do you use to edit the UI files? I use
qtassistant (qt4 version) but it seems to change a lot more in the UI
files than I actually changed since opening the file. Is it because
the UI files from kmymoney haven't been edited yet with the
qtassistant from qt4? If yes is it OK to commit the UI files with the
changes automatically done by the designer?
Thanks,
Cristian
« Return to Thread: porting int options managed by radio button groups to kde4
| Free embeddable forum powered by Nabble | Forum Help |