This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Problems with KColorCombo and KConfigXT in kde > 4.4.5

Tags: None
(comma "," separated)
christau
Registered Member
Posts
9
Karma
0
OS
Hi all,
i have the following problems with my project.
Since i updated to kde4.7 this problem occurred.
I have a 'Color' entry in my settings
Code: Select all
       
<entry name="Color" type="Color">
    <label>The color used for the text</label>
    <default>#ffffff</default>
</entry>

I also have a corresponding KColorCombo in my settings.ui file
Code: Select all
 <widget class="KColorCombo" name="kcfg_Color">
   <item>
     <property name="text">
      <string>Custom...</string>
     </property>
   </item>
 </widget>

But when i now change the color the <settings>rc file shows the following
Code: Select all
...
Color=invalid
...

This happens with all the colors i choose.

Please note, that everything worked correct for kde version <= 4.4.65.
Is there something i did wrong with the coding? Can anyone help me with that problem.
I did not write any code to apply/readout the value from KColorCombo, the above code snippets are the only code for the settings value i wrote. The rest is handled by KConfigXT.
I also tested the behaviour on KDE4.8 and it's also wrong

Many thanks in advance for any help.
Greetings, -chris-
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
A thread "Bug in kcfg, KColorCombo not handled correct" concerning this was started on kde-core-devel early last year concerning this issue. I have asked for clarification on what happened here in the end.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
christau
Registered Member
Posts
9
Karma
0
OS
Thanks for your reply.
I dumped the KColorCombo and started using a QButton with a QColorDialog.

So this Q is solved, at least for me.
Greetings, -chris-
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Just to update this - the needed bug fix for this has been committed to latest KDE sources and will be included in KDE 4.9.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft