mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-25 11:22:58 +00:00
do not check for built-in styles in QStyleFactory::keys()
styles are not build as plugins Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
ec92418325
commit
d7648eb131
1 changed files with 4 additions and 8 deletions
|
@ -134,19 +134,15 @@ QStringList QStyleFactory::keys()
|
||||||
QStringList list;
|
QStringList list;
|
||||||
#endif
|
#endif
|
||||||
#ifndef QT_NO_STYLE_WINDOWS
|
#ifndef QT_NO_STYLE_WINDOWS
|
||||||
if (!list.contains(QLatin1String("Windows")))
|
|
||||||
list << QLatin1String("Windows");
|
list << QLatin1String("Windows");
|
||||||
#endif
|
#endif
|
||||||
#ifndef QT_NO_STYLE_MOTIF
|
#ifndef QT_NO_STYLE_MOTIF
|
||||||
if (!list.contains(QLatin1String("Motif")))
|
|
||||||
list << QLatin1String("Motif");
|
list << QLatin1String("Motif");
|
||||||
#endif
|
#endif
|
||||||
#ifndef QT_NO_STYLE_PLASTIQUE
|
#ifndef QT_NO_STYLE_PLASTIQUE
|
||||||
if (!list.contains(QLatin1String("Plastique")))
|
|
||||||
list << QLatin1String("Plastique");
|
list << QLatin1String("Plastique");
|
||||||
#endif
|
#endif
|
||||||
#ifndef QT_NO_STYLE_CLEANLOOKS
|
#ifndef QT_NO_STYLE_CLEANLOOKS
|
||||||
if (!list.contains(QLatin1String("Cleanlooks")))
|
|
||||||
list << QLatin1String("Cleanlooks");
|
list << QLatin1String("Cleanlooks");
|
||||||
#endif
|
#endif
|
||||||
return list;
|
return list;
|
||||||
|
|
Loading…
Add table
Reference in a new issue