Changeset View
Changeset View
Standalone View
Standalone View
app/qml/main.qml
Show First 20 Lines • Show All 98 Lines • ▼ Show 20 Line(s) | 97 | onClicked: { | |||
---|---|---|---|---|---|
99 | nameField.accepted() | 99 | nameField.accepted() | ||
100 | } | 100 | } | ||
101 | } | 101 | } | ||
102 | } | 102 | } | ||
103 | ] | 103 | ] | ||
104 | property var objects: [findDevicesAction] | 104 | property var objects: [findDevicesAction] | ||
105 | Instantiator { | 105 | Instantiator { | ||
106 | model: DevicesSortProxyModel { | 106 | model: DevicesSortProxyModel { | ||
107 | sourceModel: DevicesModel { displayFilter: DevicesModel.Paired } | 107 | sourceModel: DevicesModel { displayFilter: DevicesModel.Paired | DevicesModel.Reachable } | ||
108 | } | 108 | } | ||
109 | delegate: Kirigami.Action { | 109 | delegate: Kirigami.Action { | ||
110 | iconName: model.iconName | 110 | iconName: model.iconName | ||
111 | text: display + "\n" + toolTip | 111 | text: display + "\n" + toolTip | ||
112 | enabled: status & DevicesModel.Reachable | 112 | visible: status & DevicesModel.Reachable | ||
113 | checked: pageStack.currentItem && pageStack.currentItem.currentDevice == device | 113 | checked: pageStack.currentItem && pageStack.currentItem.currentDevice == device | ||
114 | onTriggered: { | 114 | onTriggered: { | ||
115 | root.pageStack.clear() | 115 | root.pageStack.clear() | ||
116 | root.pageStack.push( | 116 | root.pageStack.push( | ||
117 | deviceComp, | 117 | deviceComp, | ||
118 | {currentDevice: device} | 118 | {currentDevice: device} | ||
119 | ); | 119 | ); | ||
120 | } | 120 | } | ||
Show All 23 Lines |