Re: system-settings color change vs Qt (non-kde) apps
Le Tuesday 04 January 2011, Albert Astals Cid a écrit : A Dimarts, 4 de gener de 2011, Hugo Pereira Da Costa va escriure: Hello all, Here, when I change the color scheme in kde's system-settings, the change is propagated properly to KDE apps, but not to Qt (non-kde) applications (like, for instance QGit, and other applications of mine). I believe this is due to differences between QApplication and KApplication (correct ?) Experimenting locally, I found out that if in oxygen's style I connect to kglobalsettings changes, and explicitely call KGlobal::config()-reparseConfiguration(); there, then the above gets fixed. I believe however that this is not quite acceptable, since obviously reparseConfiguration would be called twice for kde apps (correct ?). So. Does anyone have advice/insight on what we can do about it ? e.g.: - leave the situation as it is now ? (meaning that whenever you change color scheme you have to restart every Qt app you have, to get the right color changes, which I believe is unfortunate. - hack oxygen (in a way similar/better than the above, if possible) - leave that upstream to Qt (?) I'd say this should be added to kdebase/workspace/qguiplatformplugin_kde the platformplugin would work. another solution would be to call Q_GUI_EXPORT void qt_x11_apply_settings_in_all_apps(); from system-settings. (qtconfig does it)
Re: system-settings color change vs Qt (non-kde) apps
On Tuesday, January 04, 2011 09:05:13 pm Albert Astals Cid wrote: A Dimarts, 4 de gener de 2011, Hugo Pereira Da Costa va escriure: Hello all, Here, when I change the color scheme in kde's system-settings, the change is propagated properly to KDE apps, but not to Qt (non-kde) applications (like, for instance QGit, and other applications of mine). I believe this is due to differences between QApplication and KApplication (correct ?) Experimenting locally, I found out that if in oxygen's style I connect to kglobalsettings changes, and explicitely call KGlobal::config()-reparseConfiguration(); there, then the above gets fixed. I believe however that this is not quite acceptable, since obviously reparseConfiguration would be called twice for kde apps (correct ?). So. Does anyone have advice/insight on what we can do about it ? e.g.: - leave the situation as it is now ? (meaning that whenever you change color scheme you have to restart every Qt app you have, to get the right color changes, which I believe is unfortunate. - hack oxygen (in a way similar/better than the above, if possible) - leave that upstream to Qt (?) I'd say this should be added to kdebase/workspace/qguiplatformplugin_kde Sounds promising, I'll have a look and will post review request if I come up with something. Thanks for the info ! Hugo Albert Thanks in advance, Hugo