Changeset View
Changeset View
Standalone View
Standalone View
applets/devicenotifier/package/contents/ui/FullRepresentation.qml
Show First 20 Lines • Show All 152 Lines • ▼ Show 20 Line(s) | 32 | MouseArea { | |||
---|---|---|---|---|---|
153 | } | 153 | } | ||
154 | 154 | | |||
155 | Component { | 155 | Component { | ||
156 | id: deviceItem | 156 | id: deviceItem | ||
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 | Binding on icon { | ||
162 | deviceName: sdSource.data[udi] ? sdSource.data[udi].Description : "" | 162 | when: sdSource.data[udi] !== undefined | ||
163 | value: sdSource.data[udi].Icon | ||||
164 | } | ||||
165 | Binding on deviceName { | ||||
166 | when: sdSource.data[udi] !== undefined | ||||
167 | value: sdSource.data[udi].Description | ||||
168 | } | ||||
163 | emblemIcon: Emblems && Emblems[0] ? Emblems[0] : "" | 169 | emblemIcon: Emblems && Emblems[0] ? Emblems[0] : "" | ||
164 | state: sdSource.data[udi] ? sdSource.data[udi].State : 0 | 170 | state: sdSource.data[udi] ? sdSource.data[udi].State : 0 | ||
165 | 171 | | |||
166 | percentUsage: { | 172 | percentUsage: { | ||
167 | if (!sdSource.data[udi]) { | 173 | if (!sdSource.data[udi]) { | ||
168 | return 0 | 174 | return 0 | ||
169 | } | 175 | } | ||
170 | var freeSpace = new Number(sdSource.data[udi]["Free Space"]); | 176 | var freeSpace = new Number(sdSource.data[udi]["Free Space"]); | ||
▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines |