Changeset View
Changeset View
Standalone View
Standalone View
mobile/wifi/package/contents/ui/ConnectionItemDelegate.qml
Show First 20 Lines • Show All 111 Lines • ▼ Show 20 Line(s) | 110 | Kirigami.Action { | |||
---|---|---|---|---|---|
112 | visible: (Uuid != "")? true : false | 112 | visible: (Uuid != "")? true : false | ||
113 | onTriggered: { | 113 | onTriggered: { | ||
114 | kcm.push("NetworkSettings.qml", {path: ConnectionPath}) | 114 | kcm.push("NetworkSettings.qml", {path: ConnectionPath}) | ||
115 | } | 115 | } | ||
116 | }, | 116 | }, | ||
117 | Kirigami.Action { | 117 | Kirigami.Action { | ||
118 | iconName: "entry-delete" | 118 | iconName: "entry-delete" | ||
119 | visible: (Uuid != "")? true : false | 119 | visible: (Uuid != "")? true : false | ||
120 | onTriggered: forgetNetwork() | 120 | onTriggered: handler.removeConnection(ConnectionPath) | ||
121 | } | 121 | } | ||
122 | ] | 122 | ] | ||
123 | 123 | | |||
124 | onClicked: { | 124 | onClicked: { | ||
125 | changeState() | 125 | changeState() | ||
126 | } | 126 | } | ||
127 | 127 | | |||
128 | function changeState() { | 128 | function changeState() { | ||
Show All 15 Lines | 132 | if (ConnectionState == PlasmaNM.Enums.Deactivated) { | |||
144 | } | 144 | } | ||
145 | } else{ | 145 | } else{ | ||
146 | //show popup | 146 | //show popup | ||
147 | } | 147 | } | ||
148 | } else if (predictableWirelessPassword) { | 148 | } else if (predictableWirelessPassword) { | ||
149 | connectionPasswordField.visible = true; | 149 | connectionPasswordField.visible = true; | ||
150 | } | 150 | } | ||
151 | } | 151 | } | ||
152 | | ||||
153 | function forgetNetwork() { | | |||
154 | deleteConnectionDialog.name = ItemUniqueName | | |||
155 | deleteConnectionDialog.dbusPath = ConnectionPath | | |||
156 | deleteConnectionDialog.open() | | |||
157 | } | | |||
158 | } | 152 | } |