diff --git a/kcmkwin/kwincompositing/model.cpp b/kcmkwin/kwincompositing/model.cpp index 376a779445..1caf693199 100644 --- a/kcmkwin/kwincompositing/model.cpp +++ b/kcmkwin/kwincompositing/model.cpp @@ -609,8 +609,9 @@ void EffectView::init(ViewType type) } QString mainFile = QStandardPaths::locate(QStandardPaths::GenericDataLocation, path, QStandardPaths::LocateFile); setResizeMode(QQuickView::SizeRootObjectToView); - rootContext()->setContextProperty("engine", this); setSource(QUrl(mainFile)); + rootObject()->setProperty("color", + KColorScheme(QPalette::Active, KColorScheme::Window, KSharedConfigPtr(0)).background(KColorScheme::NormalBackground).color()); connect(rootObject(), SIGNAL(changed()), this, SIGNAL(changed())); setMinimumSize(initialSize()); connect(rootObject(), SIGNAL(implicitWidthChanged()), this, SLOT(slotImplicitSizeChanged())); diff --git a/kcmkwin/kwincompositing/model.h b/kcmkwin/kwincompositing/model.h index a1b2693856..5bdabecb5b 100644 --- a/kcmkwin/kwincompositing/model.h +++ b/kcmkwin/kwincompositing/model.h @@ -126,8 +126,6 @@ public: }; EffectView(ViewType type, QWindow *parent = 0); - Q_INVOKABLE QColor backgroundViewColor() { return KColorScheme(QPalette::Active, KColorScheme::Window, KSharedConfigPtr(0)).background(KColorScheme::NormalBackground).color(); }; - void save(); void load(); void defaults(); diff --git a/kcmkwin/kwincompositing/qml/EffectView.qml b/kcmkwin/kwincompositing/qml/EffectView.qml index b8ab25c8d8..ac26925cbc 100644 --- a/kcmkwin/kwincompositing/qml/EffectView.qml +++ b/kcmkwin/kwincompositing/qml/EffectView.qml @@ -27,7 +27,6 @@ Rectangle { signal changed implicitWidth: col.implicitWidth implicitHeight: col.implicitHeight - color: engine.backgroundViewColor() Component { id: sectionHeading