Changeset View
Changeset View
Standalone View
Standalone View
mobile/wifi/package/contents/ui/main.qml
Show First 20 Lines • Show All 154 Lines • ▼ Show 20 Line(s) | 146 | ColumnLayout{ | |||
---|---|---|---|---|---|
155 | } | 155 | } | ||
156 | Item { | 156 | Item { | ||
157 | Layout.minimumHeight: Units.gridUnit * 4 | 157 | Layout.minimumHeight: Units.gridUnit * 4 | ||
158 | } | 158 | } | ||
159 | } | 159 | } | ||
160 | } | 160 | } | ||
161 | } | 161 | } | ||
162 | */ | 162 | */ | ||
163 | Kirigami.OverlayDrawer { | | |||
164 | id: deleteConnectionDialog | | |||
165 | property var name | | |||
166 | property var dbusPath | | |||
167 | edge: Qt.BottomEdge | | |||
168 | | ||||
169 | contentItem: Column { | | |||
170 | anchors.centerIn: parent | | |||
171 | spacing: Kirigami.Units.largeSpacing | | |||
172 | bottomPadding: Kirigami.Units.largeSpacing | | |||
173 | | ||||
174 | Controls.Label { | | |||
175 | anchors.horizontalCenter: parent.horizontalCenter | | |||
176 | text: i18n("Delete connection %1 from device?", deleteConnectionDialog.name) | | |||
177 | } | | |||
178 | Controls.Button { | | |||
179 | text: i18n("Delete") | | |||
180 | anchors.horizontalCenter: parent.horizontalCenter | | |||
181 | onClicked: { | | |||
182 | handler.removeConnection(deleteConnectionDialog.dbusPath) | | |||
183 | deleteConnectionDialog.close() | | |||
184 | } | | |||
185 | } | | |||
186 | Controls.Button { | | |||
187 | text: i18n("Cancel") | | |||
188 | anchors.horizontalCenter: parent.horizontalCenter | | |||
189 | onClicked: deleteConnectionDialog.close() | | |||
190 | } | | |||
191 | } | | |||
192 | onVisibleChanged: { | | |||
193 | if (!visible) { | | |||
194 | deleteConnectionDialog.name = "" | | |||
195 | deleteConnectionDialog.dbusPath = "" | | |||
196 | } | | |||
197 | } | | |||
198 | } | | |||
199 | } | 163 | } |