Changeset View
Changeset View
Standalone View
Standalone View
applet/contents/ui/ConnectionItem.qml
Show First 20 Lines • Show All 161 Lines • ▼ Show 20 Line(s) | 160 | PlasmaComponents.MenuItem { | |||
---|---|---|---|---|---|
162 | enabled: false | 162 | enabled: false | ||
163 | } | 163 | } | ||
164 | PlasmaComponents.MenuItem { | 164 | PlasmaComponents.MenuItem { | ||
165 | text: stateChangeButton.text | 165 | text: stateChangeButton.text | ||
166 | icon: (ConnectionState == PlasmaNM.Enums.Deactivated) ? "network-connect" : "network-disconnect" | 166 | icon: (ConnectionState == PlasmaNM.Enums.Deactivated) ? "network-connect" : "network-disconnect" | ||
167 | onClicked: changeState() | 167 | onClicked: changeState() | ||
168 | } | 168 | } | ||
169 | PlasmaComponents.MenuItem { | 169 | PlasmaComponents.MenuItem { | ||
170 | text: i18n("Show Network QR") | ||||
ngraham: "Show network's QR code" | |||||
171 | visible: ConnectionState !== PlasmaNM.Enums.Deactivated | ||||
I think this should be limited to wireless connections only (Type == PlasmaNM.Enums.Wireless). jgrulich: I think this should be limited to wireless connections only (Type == PlasmaNM.Enums.Wireless). | |||||
172 | onClicked: { | ||||
173 | const data = handler.wifiCode(ConnectionPath, SpecificPath) | ||||
174 | var obj = showQR.createObject(connectionItem, { content: data }); | ||||
175 | obj.showMaximized() | ||||
176 | } | ||||
177 | | ||||
178 | Component { | ||||
179 | id: showQR | ||||
180 | ShowQR {} | ||||
181 | } | ||||
182 | } | ||||
183 | PlasmaComponents.MenuItem { | ||||
170 | text: i18n("Configure...") | 184 | text: i18n("Configure...") | ||
171 | icon: "settings-configure" | 185 | icon: "settings-configure" | ||
172 | onClicked: KCMShell.open([mainWindow.kcm, "--args", "Uuid=" + Uuid]) | 186 | onClicked: KCMShell.open([mainWindow.kcm, "--args", "Uuid=" + Uuid]) | ||
173 | } | 187 | } | ||
174 | } | 188 | } | ||
175 | 189 | | |||
176 | Component { | 190 | Component { | ||
177 | id: detailsComponent | 191 | id: detailsComponent | ||
▲ Show 20 Lines • Show All 237 Lines • Show Last 20 Lines |
"Show network's QR code"