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

Redraw style (button style, etc.) programatically

Tags: None
(comma "," separated)
Rax
Registered Member
Posts
5
Karma
0
OS
Hi.
I am working on kiosktool and I want button 'Preview' as it was in KDE3.
Right now I want to preview KDE Style settings. When I press 'Preview' button I set up evnironment variables so that the KDEDIRS etc. points to the profile's directory tree. Now I want all running applications to redraw it's content according to settings in kdeglobals in profile's directory tree (pretty the same thing, that is done, when you are editting style settings via systemsettings and click apply).

I looked into code of style kcmodule and there is used this:
Code: Select all
KGlobalSettings::emitChange(KGlobalSettings::StyleChanged);

But in KDE api is written, that this method should be used only in kcmodules and no in normal KDE app.
I also tried this method and it done nothing.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
This is possibly because the applications themselves have their own KDEDIRS, KDEHOME, etc. settings, therefore they will reload from there rather than your own customised settings when you send that signal.


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


Bookmarks



Who is online

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