diff --git a/src/declarativeimports/core/theme.cpp b/src/declarativeimports/core/theme.cpp index f38576eae..d8b02b770 100644 --- a/src/declarativeimports/core/theme.cpp +++ b/src/declarativeimports/core/theme.cpp @@ -73,11 +73,6 @@ QSizeF ThemeProxy::mSize(const QFont &font) const } -bool ThemeProxy::windowTranslucencyEnabled() const -{ - return Plasma::Theme::defaultTheme()->windowTranslucencyEnabled(); -} - KUrl ThemeProxy::homepage() const { return Plasma::Theme::defaultTheme()->homepage(); diff --git a/src/declarativeimports/core/theme.h b/src/declarativeimports/core/theme.h index b4a162c34..b7a662861 100644 --- a/src/declarativeimports/core/theme.h +++ b/src/declarativeimports/core/theme.h @@ -40,7 +40,6 @@ class ThemeProxy : public QObject Q_OBJECT Q_PROPERTY(QString themeName READ themeName NOTIFY themeChanged) - Q_PROPERTY(bool windowTranslucentEnabled READ windowTranslucencyEnabled NOTIFY themeChanged) Q_PROPERTY(KUrl homepage READ homepage NOTIFY themeChanged) Q_PROPERTY(bool useGlobalSettings READ useGlobalSettings NOTIFY themeChanged) Q_PROPERTY(QString wallpaperPath READ wallpaperPath NOTIFY themeChanged) @@ -98,7 +97,6 @@ public: */ Q_INVOKABLE QSizeF mSize(const QFont &font = QApplication::font()) const; - bool windowTranslucencyEnabled() const; KUrl homepage() const; bool useGlobalSettings() const; QString wallpaperPath() const; diff --git a/src/plasma/theme.cpp b/src/plasma/theme.cpp index c7314b118..6d3db7fbd 100644 --- a/src/plasma/theme.cpp +++ b/src/plasma/theme.cpp @@ -829,11 +829,6 @@ QColor Theme::color(ColorRole role) const return QColor(); } -bool Theme::windowTranslucencyEnabled() const -{ - return d->compositingActive; -} - void Theme::setUseGlobalSettings(bool useGlobal) { if (d->useGlobal == useGlobal) { diff --git a/src/plasma/theme.h b/src/plasma/theme.h index 70a5a0700..caef3c261 100644 --- a/src/plasma/theme.h +++ b/src/plasma/theme.h @@ -148,11 +148,6 @@ class PLASMA_EXPORT Theme : public QObject */ QColor color(ColorRole role) const; - /** - * @return true if the window manager effects (e.g. translucency, compositing) is active or not - */ - bool windowTranslucencyEnabled() const; - /** * Tells the theme whether to follow the global settings or use application * specific settings