on xenial help sign in
Widgets already have scopeStyle
8809451Michał Sawicz
qml/Dash/Previews/PreviewActions.qml−2
@@ -24,8 +24,6 @@ import QtQuick 2.1
24PreviewWidget {
24PreviewWidget {
25 id: root
25 id: root
26
26
27− property var scopeStyle: null
28−
29 height: row.height + units.gu(1)
27 height: row.height + units.gu(1)
30
28
31 Row {
29 Row {
qml/Dash/Previews/PreviewWidgetFactory.qml+1−1
@@ -70,7 +70,7 @@ Loader {
70 item.widgetData = Qt.binding(function() { return root.widgetData } )
70 item.widgetData = Qt.binding(function() { return root.widgetData } )
71 item.isCurrentPreview = Qt.binding(function() { return root.isCurrentPreview } )
71 item.isCurrentPreview = Qt.binding(function() { return root.isCurrentPreview } )
72 item.expanded = Qt.binding(function() { return root.expanded } )
72 item.expanded = Qt.binding(function() { return root.expanded } )
73− if (item.hasOwnProperty("scopeStyle")) item.scopeStyle = root.scopeStyle;
73+ item.scopeStyle = Qt.binding(function() { return root.scopeStyle } )
74 }
74 }
75
75
76 Connections {
76 Connections {