~cimi/unity8/preview-sharing-fix-broken-binding

« back to all changes in this revision

Viewing changes to qml/Dash/Previews/PreviewWidgetFactory.qml

  • Committer: Pawel Stolowski
  • Date: 2015-12-15 15:10:16 UTC
  • mfrom: (2079.1.20 unity8)
  • Revision ID: pawel.stolowski@canonical.com-20151215151016-n136phkhmh0jo4ki
Merged trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
    //! Set margins width.
44
44
    property real widgetMargins: status === Loader.Ready ? item.widgetMargins : units.gu(1)
45
45
 
 
46
    /// The parent (vertical) flickable this widget is in (if any)
 
47
    property var parentFlickable: null
 
48
 
46
49
    //! Triggered signal forwarded from the widgets.
47
50
    signal triggered(string widgetId, string actionId, var data)
48
51
 
82
85
        item.isCurrentPreview = Qt.binding(function() { return root.isCurrentPreview } )
83
86
        item.expanded = Qt.binding(function() { return root.expanded } )
84
87
        item.scopeStyle = Qt.binding(function() { return root.scopeStyle } )
 
88
        item.parentFlickable = Qt.binding(function() { return root.parentFlickable } )
85
89
    }
86
90
 
87
91
    Connections {