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,20 +134,16 @@ QStringList QStyleFactory::keys()
|
|||
QStringList list;
|
||||
#endif
|
||||
#ifndef QT_NO_STYLE_WINDOWS
|
||||
if (!list.contains(QLatin1String("Windows")))
|
||||
list << QLatin1String("Windows");
|
||||
list << QLatin1String("Windows");
|
||||
#endif
|
||||
#ifndef QT_NO_STYLE_MOTIF
|
||||
if (!list.contains(QLatin1String("Motif")))
|
||||
list << QLatin1String("Motif");
|
||||
list << QLatin1String("Motif");
|
||||
#endif
|
||||
#ifndef QT_NO_STYLE_PLASTIQUE
|
||||
if (!list.contains(QLatin1String("Plastique")))
|
||||
list << QLatin1String("Plastique");
|
||||
list << QLatin1String("Plastique");
|
||||
#endif
|
||||
#ifndef QT_NO_STYLE_CLEANLOOKS
|
||||
if (!list.contains(QLatin1String("Cleanlooks")))
|
||||
list << QLatin1String("Cleanlooks");
|
||||
list << QLatin1String("Cleanlooks");
|
||||
#endif
|
||||
return list;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue