[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: system-settings color change vs Qt (non-kde) apps
From: Olivier Goffart <ogoffart () kde ! org>
Date: 2011-01-05 11:07:54
Message-ID: 201101051207.55104.ogoffart () kde ! org
[Download RAW message or body]
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)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic