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

Plasmoid-Settings-Dialog: KColorButton doesn't work any more

Tags: None
(comma "," separated)
User avatar
Gerardo
Registered Member
Posts
4
Karma
0
OS
Hi folks,

I was programming a JavaScript-Plasmoid for quite some time and I also was really happy by doing that ;)

But with the release of KDE 4.5 one of the functionalities doesn't work any more. With KDE 4.4 I used a widget class called "KColorButton" for choosing an arbitrary color in the settings-dialog. Here a small code extract of my config.ui file:

Code: Select all
<item row="13" column="1">
  <widget class="KColorButton" name="kcfg_customCharacterColor">
    <property name="color">
      <color>
        <red>255</red>
        <green>255</green>
        <blue>255</blue>
      </color>
    </property>
    <property name="defaultColor">
      <color>
        <red>0</red>
        <green>255</green>
        <blue>0</blue>
      </color>
    </property>
  </widget>
</item>


That worked very well for me (with KDE 4.4). But with KDE 4.5 the settings dialog doesn't show anything.

Using plasmoidviewer the konsole output tells me the following:

"QFormBuilder was unable to create a widget of the class 'KColorButton'."


Knows anybody anything about that problem or has anybody an idea, how I could get back the functionality of a "color chooser" (like KColorButton) into the settings dialog?
toyg
Registered Member
Posts
2
Karma
0
OS
I don't know what's wrong with your code, but KColorButton works for me in 4.5.1/.2 , using the Python bindings -- so it's still there.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Can you post a link to your Javascript Applet so I can test it on trunk?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
Gerardo
Registered Member
Posts
4
Karma
0
OS
@toyg: thanks for your hint. A few days ago I also found some plasmoid scripts written in Python on kde-look.org using KColorButton successfully. Unfortunately I couldn't find a JavaScript Plasmoid using KColorButton...

@bcooksley: of course :) Here we are...

Thanks in advance...
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Unfortunately it fails to start :(

http://imagebin.ca/view/PlJkoa.html'


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
Gerardo
Registered Member
Posts
4
Karma
0
OS
@cbooksley: I added a small workaround to prevent my applet to fail on start in trunk (I hope ;) ). Could you please take another look? Thanks...

http://gerardo.homelinux.org/devel/matrix_v05_beta_with_workaround.tar.gz
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
The colour picker provided by KColorButton, and the view itself, appeared as expected on my Trunk system.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
Gerardo
Registered Member
Posts
4
Karma
0
OS
Cool, thanks for testing! :)

But... what means that exactly? That my applet will not only work in trunk but also in the coming releases (e.g. KDE 4.6)?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Correct, as KDE 4.6 has not yet been branched, therefore trunk = KDE 4.6.


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


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rockscient