Changeset View
Changeset View
Standalone View
Standalone View
app/qml/FindDevicesPage.qml
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Line(s) | 36 | ListView { | |||
---|---|---|---|---|---|
53 | 53 | | |||
54 | model: DevicesSortProxyModel { | 54 | model: DevicesSortProxyModel { | ||
55 | sourceModel: DevicesModel { displayFilter: DevicesModel.Reachable } | 55 | sourceModel: DevicesModel { displayFilter: DevicesModel.Reachable } | ||
56 | } | 56 | } | ||
57 | delegate: Kirigami.BasicListItem { | 57 | delegate: Kirigami.BasicListItem { | ||
58 | width: ListView.view.width | 58 | width: ListView.view.width | ||
59 | icon: iconName | 59 | icon: iconName | ||
60 | label: display + "\n" + toolTip | 60 | label: display + "\n" + toolTip | ||
61 | enabled: !(status & DevicesModel.Paired) | | |||
62 | onClicked: { | 61 | onClicked: { | ||
63 | pageStack.push( | 62 | pageStack.push( | ||
64 | deviceComp, | 63 | deviceComp, | ||
65 | {currentDevice: device} | 64 | {currentDevice: device} | ||
66 | ); | 65 | ); | ||
67 | } | 66 | } | ||
68 | } | 67 | } | ||
69 | } | 68 | } | ||
70 | } | 69 | } |