remove useNativeWidgetStyle
This commit is contained in:
parent
62c8a7b500
commit
ae120ba02d
@ -93,8 +93,7 @@ public:
|
||||
blurActive(false),
|
||||
isDefault(false),
|
||||
useGlobal(true),
|
||||
hasWallpapers(false),
|
||||
useNativeWidgetStyle(false)
|
||||
hasWallpapers(false)
|
||||
{
|
||||
ThemeConfig config;
|
||||
cacheTheme = config.cacheTheme();
|
||||
@ -204,7 +203,6 @@ public:
|
||||
bool useGlobal : 1;
|
||||
bool hasWallpapers : 1;
|
||||
bool cacheTheme : 1;
|
||||
bool useNativeWidgetStyle :1;
|
||||
};
|
||||
|
||||
const char *ThemePrivate::defaultTheme = "default";
|
||||
@ -603,7 +601,6 @@ void ThemePrivate::setThemeName(const QString &tempThemeName, bool writeSettings
|
||||
processWallpaperSettings(&metadata);
|
||||
|
||||
KConfigGroup cg(&metadata, "Settings");
|
||||
useNativeWidgetStyle = cg.readEntry("UseNativeWidgetStyle", false);
|
||||
QString fallback = cg.readEntry("FallbackTheme", QString());
|
||||
|
||||
fallbackThemes.clear();
|
||||
@ -846,11 +843,6 @@ bool Theme::useGlobalSettings() const
|
||||
return d->useGlobal;
|
||||
}
|
||||
|
||||
bool Theme::useNativeWidgetStyle() const
|
||||
{
|
||||
return d->useNativeWidgetStyle;
|
||||
}
|
||||
|
||||
bool Theme::findInCache(const QString &key, QPixmap &pix, unsigned int lastModified)
|
||||
{
|
||||
if (lastModified != 0 && d->useCache() && lastModified > uint(d->pixmapCache->lastModifiedTime())) {
|
||||
|
@ -162,12 +162,6 @@ class PLASMA_EXPORT Theme : public QObject
|
||||
*/
|
||||
bool useGlobalSettings() const;
|
||||
|
||||
/**
|
||||
* @return true if the native widget styles should be used instead of themed
|
||||
* widgets. Defaults is false.
|
||||
*/
|
||||
bool useNativeWidgetStyle() const;
|
||||
|
||||
/**
|
||||
* Provides a Plasma::Theme-themed stylesheet for hybrid (web / native Plasma) widgets.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user