@@ -173,7 +173,6 @@ Page {
173173 Layout .fillWidth : true
174174 visible: root .request !== null && root .request .address !== " "
175175 address: root .request ? root .request .address : " "
176- onCopied: copiedToast .show (copyButton)
177176 }
178177 }
179178
@@ -223,48 +222,6 @@ Page {
223222 onClicked: root .editRequest ()
224223 }
225224
226- Button {
227- id: copyButton
228- objectName: " paymentRequestDetailCopy"
229- Layout .fillWidth : true
230- hoverEnabled: AppMode .isDesktop
231- implicitHeight: 46
232- Accessible .name : qsTr (" Copy payment request" )
233-
234- contentItem: RowLayout {
235- spacing: 6
236- Item { Layout .fillWidth : true }
237- Icon {
238- source: " qrc:/icons/copy"
239- color: Theme .color .neutral9
240- size: 24
241- }
242- CoreText {
243- text: qsTr (" Copy" )
244- bold: true
245- font .pixelSize : 18
246- color: Theme .color .neutral9
247- }
248- Item { Layout .fillWidth : true }
249- }
250-
251- background: Rectangle {
252- implicitHeight: 46
253- color: Theme .color .background
254- radius: 5
255- border .width : 1
256- border .color : copyButton .pressed ? Theme .color .orangeLight2 : copyButton .hovered ? Theme .color .neutral9 : Theme .color .neutral6
257- Behavior on border .color { ColorAnimation { duration: 150 } }
258- }
259-
260- onClicked: {
261- if (root .request ) {
262- Clipboard .setText (root .request .qrPayload )
263- copiedToast .show (copyButton)
264- }
265- }
266- }
267-
268225 Button {
269226 id: qrButton
270227 objectName: " paymentRequestDetailQRButton"
@@ -310,26 +267,13 @@ Page {
310267 }
311268 }
312269
313- ToastPopup {
314- id: copiedToast
315- popupAnchor: copyButton
316- popupOffset: 4
317- text: qsTr (" Copied" )
318- backgroundColor: Theme .color .green
319- borderColor: Theme .color .green
320- textColor: Theme .color .white
321- iconSource: " image://images/check"
322- iconColor: Theme .color .white
323- }
324-
325270 QRCodePopup {
326271 id: qrPopup
327272 code: root .request ? root .request .qrPayload : " "
328273 label: root .request ? root .request .label : " "
329274 onCopyRequested: {
330275 if (root .request ) {
331276 Clipboard .setText (root .request .qrPayload )
332- copiedToast .show (copyButton)
333277 }
334278 qrPopup .close ()
335279 }
0 commit comments