~diegosarmentero/click-update-manager/settings-link

« back to all changes in this revision

Viewing changes to Components/PageUpdate.qml

  • Committer: Tarmac
  • Author(s): Diego Sarmentero
  • Date: 2013-09-23 16:35:55 UTC
  • mfrom: (16.2.4 click-update-manager)
  • Revision ID: tarmac-20130923163555-qew0xpbfedup6aav
- Adding tests for the qml components and missing icon. Fixes: https://bugs.launchpad.net/bugs/1228307.

Approved by PS Jenkins bot, Manuel de la Peña, Roberto Alsina.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
    ClickManager {
27
27
        id: clickManager
 
28
        objectName: "clickManager"
28
29
 
29
30
        Component.onCompleted: clickManager.checkUpdates()
 
31
 
 
32
        onModelChanged: {
 
33
            loadingIndicator.visible = false;
 
34
        }
 
35
 
 
36
        onUpdatesNotFound: {
 
37
            loadingIndicator.visible = false;
 
38
            installAllButton.visible = false;
 
39
            labelNoUpdates.visible = true;
 
40
        }
30
41
    }
31
42
 
32
43
    Button {
52
63
 
53
64
    ListView {
54
65
        id: updateList
 
66
        objectName: "updateList"
55
67
        anchors {
56
68
            left: parent.left
57
69
            right: parent.right
70
82
 
71
83
            Rectangle {
72
84
                id: textArea
 
85
                objectName: "textArea"
73
86
                color: "transparent"
74
87
                anchors.fill: parent
75
88
                anchors.topMargin: units.gu(1)
76
89
 
77
90
                Column {
78
91
                    id: colRight
 
92
                    objectName: "colRight"
79
93
                    anchors.top: parent.top
80
94
                    anchors.right: parent.right
81
95
                    anchors.topMargin: units.gu(1)
98
112
 
99
113
                Column {
100
114
                    id: colLeft
 
115
                    objectName: "colLeft"
101
116
                    anchors {
102
117
                        left: parent.left
103
118
                        bottom: parent.bottom
132
147
 
133
148
            ProgressBar {
134
149
                id: progress
 
150
                objectName: "progress"
135
151
                width: textArea.width - colRight.width - units.gu(2)
136
152
                height: parent.height / 3
137
153
                anchors.left: textArea.left
158
174
            }
159
175
        }
160
176
    }
 
177
 
 
178
    Label {
 
179
        id: labelNoUpdates
 
180
        anchors.centerIn: parent
 
181
        text: i18n.tr("No Updates Found")
 
182
        color: "white"
 
183
        opacity: .9
 
184
        style: Text.Raised
 
185
        styleColor: "black"
 
186
        wrapMode: Text.WrapAtWordBoundaryOrAnywhere
 
187
        visible: false
 
188
        fontSize: "x-large"
 
189
    }
 
190
 
 
191
    Rectangle {
 
192
        id: loadingIndicator
 
193
        objectName: "loadingIndicator"
 
194
        anchors.fill: parent
 
195
        color: "black"
 
196
        opacity: 0.8
 
197
        visible: true
 
198
 
 
199
        ActivityIndicator {
 
200
            running: parent.visible
 
201
            anchors.centerIn: parent
 
202
        }
 
203
        MouseArea {
 
204
            anchors.fill: parent
 
205
        }
 
206
    }
161
207
}