From 81510d7e47a10b7ad4533cca5fe5c49f208d5d1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Tue, 27 Aug 2013 12:15:37 +0200 Subject: [PATCH] Make EffectModel a toplevel element in EffectView The id is referenced all over the document which makes it nicer to read if it is not a nested element. --- kcmkwin/kwincompositing/qml/EffectView.qml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/kcmkwin/kwincompositing/qml/EffectView.qml b/kcmkwin/kwincompositing/qml/EffectView.qml index 8dbc81850e..be4a73ec98 100644 --- a/kcmkwin/kwincompositing/qml/EffectView.qml +++ b/kcmkwin/kwincompositing/qml/EffectView.qml @@ -24,6 +24,9 @@ import QtQuick.Layouts 1.0 import org.kde.kwin.kwincompositing 1.0 Item { + EffectModel { + id: effectModel + } Component { id: sectionHeading @@ -93,9 +96,7 @@ Item { EffectFilterModel { id:searchModel filter: searchField.text - effectModel: EffectModel { - id: effectModel - } + effectModel: effectModel } ScrollView {