~cimi/unity8/scope-settings

« back to all changes in this revision

Viewing changes to qml/Dash/PreviewListView.qml

  • Committer: Andrea Cimitan
  • Date: 2014-08-07 16:17:06 UTC
  • mfrom: (1109.1.25 unity8)
  • Revision ID: andrea.cimitan@gmail.com-20140807161706-j6ndy7bgz457xn4n
[ Michal Hruby ]
* Work with the scopes-v4 branch + departments->navigation renaming
[ Michał Sawicz ]
* Hardcode art shape size for click scope local and predefined
  categories While at it, drop the fillmode of cards
* Use the correct API in PageHeader. (LP: #1353048)
* Refactor dash activity indicator. (LP: #1351539)
[ Albert Astals ]
* Dash Departments fixes Update maxHeight manually since it depends on
  the position of the item and its parents and it can't know when the
  binding has to be updated Make parent stuff non interactive when the
  department list is shown
* PageHeader: when on search clip y-coordinates otherwise the
  background spills out when on search (LP: #1350398)
* Dash: Implement OverlayColor support in Cards
* Hardcode art shape size for click scope local and predefined
  categories While at it, drop the fillmode of cards
* Make test_departments test more stable There's various
  DashDepartments on the dash, make sure we're working over the one
  that is on screen, otherwise clicks don't end up where they should
* Work with the scopes-v4 branch + departments->navigation renaming
* Fixes for dash as app Load i18n catalog Process command line options
  Add the posibility to have a mouse touch adaptor (LP: #1353351)
* Implement the Expandable Preview Widget Now TextSummary is not
  expandable by itself anymore, you have to use it inside an
  Expandable to get the behaviour
* Add test prefix to xml output, seems CI needs it
[ Antti Kaijanmäki ]
* Indicators: Adds new ModemInfoItem to be used with indicator-network
  (LP: #1329204)
[ Michael Terry ]
* When the edge demo is running, don't show the greeter if the screen
  is turned off. This avoids an odd interaction where parts of the
  greeter are disabled but the edge demo isn't visible until you slide
  the greeter away. (LP: #1283425)
* Don't hardcode the phablet password in our testing script.
[ Ying-Chun Liu ]
* Add divider dots.
[ Mirco Müller ]
* Make sure the TextField of a snap-decision notification has the
  active focus upon creation, thus the osk shows up right away. (LP:
  #1346867)
[ Andrea Cimitan ]
* Add touchdown effect to dash cards.
* Import Ubuntu.Components for preview image gallery to pick up
  default flicking speeds.
[ Michael Zanetti ]
* Split the dash from the shell into a separate app (LP: #1232687)
[ Leo Arias ]
* Update the autopilot tests to work with the new dash app.
[ Daniel d'Andrada ]
* Split the dash from the shell into a separate app (LP: #1232687)

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
    property alias currentItem: previewListView.currentItem
33
33
    property alias count: previewListView.count
34
34
 
 
35
    readonly property bool processing: currentItem && (!currentItem.previewModel.loaded
 
36
                                                       || currentItem.previewModel.processingAction)
 
37
 
35
38
    signal backClicked()
36
39
 
37
40
    PageHeader {
85
88
            }
86
89
        }
87
90
 
88
 
        delegate: Item {
89
 
            objectName: "previewItem" + index
 
91
        delegate: Previews.Preview {
 
92
            id: preview
 
93
            objectName: "preview" + index
90
94
            height: previewListView.height
91
95
            width: previewListView.width
92
96
 
93
 
            readonly property bool ready: preview.previewModel.loaded
94
 
 
95
 
            Previews.Preview {
96
 
                id: preview
97
 
                objectName: "preview" + index
98
 
                anchors.fill: parent
99
 
 
100
 
                isCurrent: parent.ListView.isCurrentItem
101
 
 
102
 
                previewModel: {
103
 
                    var previewStack = root.scope.preview(result);
104
 
                    return previewStack.getPreviewModel(0);
105
 
                }
106
 
                scopeStyle: root.scopeStyle
107
 
            }
108
 
 
109
 
            MouseArea {
110
 
                id: processingMouseArea
111
 
                objectName: "processingMouseArea"
112
 
                anchors.fill: parent
113
 
                enabled: !preview.previewModel.loaded || preview.previewModel.processingAction
114
 
 
115
 
                ActivityIndicator {
116
 
                    anchors.centerIn: parent
117
 
                    visible: root.open && parent.enabled
118
 
                    running: visible
119
 
                }
120
 
            }
121
 
        }
 
97
            isCurrent: ListView.isCurrentItem
 
98
 
 
99
            previewModel: {
 
100
                var previewStack = root.scope.preview(result);
 
101
                return previewStack.getPreviewModel(0);
 
102
            }
 
103
            scopeStyle: root.scopeStyle
 
104
        }
 
105
    }
 
106
 
 
107
    MouseArea {
 
108
        id: processingMouseArea
 
109
        objectName: "processingMouseArea"
 
110
        anchors {
 
111
            left: parent.left
 
112
            right: parent.right
 
113
            top: pageHeader.bottom
 
114
            bottom: parent.bottom
 
115
        }
 
116
 
 
117
        enabled: root.processing
122
118
    }
123
119
}