Changeset View
Changeset View
Standalone View
Standalone View
applets/devicenotifier/package/contents/ui/FullRepresentation.qml
Show First 20 Lines • Show All 162 Lines • ▼ Show 20 Line(s) | 161 | Binding on icon { | |||
---|---|---|---|---|---|
163 | value: sdSource.data[udi].Icon | 163 | value: sdSource.data[udi].Icon | ||
164 | } | 164 | } | ||
165 | Binding on deviceName { | 165 | Binding on deviceName { | ||
166 | when: sdSource.data[udi] !== undefined | 166 | when: sdSource.data[udi] !== undefined | ||
167 | value: sdSource.data[udi].Description | 167 | value: sdSource.data[udi].Description | ||
168 | } | 168 | } | ||
169 | emblemIcon: Emblems && Emblems[0] ? Emblems[0] : "" | 169 | emblemIcon: Emblems && Emblems[0] ? Emblems[0] : "" | ||
170 | state: sdSource.data[udi] ? sdSource.data[udi].State : 0 | 170 | state: sdSource.data[udi] ? sdSource.data[udi].State : 0 | ||
171 | isRoot: sdSource.data[udi]["File Path"] == "/" | ||||
171 | 172 | | |||
172 | percentUsage: { | 173 | percentUsage: { | ||
173 | if (!sdSource.data[udi]) { | 174 | if (!sdSource.data[udi]) { | ||
174 | return 0 | 175 | return 0 | ||
175 | } | 176 | } | ||
176 | var freeSpace = new Number(sdSource.data[udi]["Free Space"]); | 177 | var freeSpace = new Number(sdSource.data[udi]["Free Space"]); | ||
177 | var size = new Number(sdSource.data[udi]["Size"]); | 178 | var size = new Number(sdSource.data[udi]["Size"]); | ||
178 | var used = size-freeSpace; | 179 | var used = size-freeSpace; | ||
Show All 39 Lines |