Changeset View
Changeset View
Standalone View
Standalone View
applets/devicenotifier/package/contents/ui/FullRepresentation.qml
Show First 20 Lines • Show All 156 Lines • ▼ Show 20 Line(s) | 155 | Component { | |||
---|---|---|---|---|---|
157 | 157 | | |||
158 | DeviceItem { | 158 | DeviceItem { | ||
159 | width: notifierDialog.width | 159 | width: notifierDialog.width | ||
160 | udi: DataEngineSource | 160 | udi: DataEngineSource | ||
161 | icon: sdSource.data[udi] ? sdSource.data[udi].Icon : "" | 161 | icon: sdSource.data[udi] ? sdSource.data[udi].Icon : "" | ||
162 | deviceName: sdSource.data[udi] ? sdSource.data[udi].Description : "" | 162 | deviceName: sdSource.data[udi] ? sdSource.data[udi].Description : "" | ||
163 | emblemIcon: Emblems && Emblems[0] ? Emblems[0] : "" | 163 | emblemIcon: Emblems && Emblems[0] ? Emblems[0] : "" | ||
164 | state: sdSource.data[udi] ? sdSource.data[udi].State : 0 | 164 | state: sdSource.data[udi] ? sdSource.data[udi].State : 0 | ||
165 | isRoot: sdSource.data[udi]["File Path"] == "/" | ||||
165 | 166 | | |||
166 | percentUsage: { | 167 | percentUsage: { | ||
167 | if (!sdSource.data[udi]) { | 168 | if (!sdSource.data[udi]) { | ||
168 | return 0 | 169 | return 0 | ||
169 | } | 170 | } | ||
170 | var freeSpace = new Number(sdSource.data[udi]["Free Space"]); | 171 | var freeSpace = new Number(sdSource.data[udi]["Free Space"]); | ||
171 | var size = new Number(sdSource.data[udi]["Size"]); | 172 | var size = new Number(sdSource.data[udi]["Size"]); | ||
172 | var used = size-freeSpace; | 173 | var used = size-freeSpace; | ||
Show All 39 Lines |