KStyle::defaultStyle() related
Ralf Habacker
ralf.habacker at freenet.de
Tue Nov 25 15:06:46 GMT 2008
Matthias Kretz schrieb:
> On Tuesday 25 November 2008 11:02:21 Ralf Habacker wrote:
>
>> QString KStyle::defaultStyle()
>> {
>> #ifndef Q_WS_X11
>> return QString(""); // native
>> #else
>> return QString("oxygen");
>> #endif
>> }
>>
>> Then the first code snippet above could be eased [...]
>>
>
> makes sense to me
>
> is KStyle::defaultStyle used anywhere else? /me looks at lxr:
> http://lxr.kde.org/search?filestring=&string=KStyle::defaultStyle
>
> Seems like it won't do any harm at the other places
yes, it looks so.
> but I'm not 100% sure about that.
>
in fact this fix will unify kde applications style usage on non x11
platforms.
With recent code some application/widgets will use oxygen as default
style and others the native style depending on the code location, which
is bad.
Ralf
More information about the kde-core-devel
mailing list