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