From 88655439a017ea74041d022a9f23a919d27f51e2 Mon Sep 17 00:00:00 2001 From: obscuren Date: Sun, 17 Aug 2014 13:49:46 +0200 Subject: Copy to clipboard hax --- ethereal/assets/qml/wallet.qml | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'ethereal/assets/qml/wallet.qml') diff --git a/ethereal/assets/qml/wallet.qml b/ethereal/assets/qml/wallet.qml index 30e1071f7..45514f7c1 100644 --- a/ethereal/assets/qml/wallet.qml +++ b/ethereal/assets/qml/wallet.qml @@ -17,6 +17,17 @@ ApplicationWindow { title: "Ethereal" + TextField { + id: copyElementHax + visible: false + } + + function copyToClipboard(text) { + copyElementHax.text = text + copyElementHax.selectAll() + copyElementHax.copy() + } + // Takes care of loading all default plugins Component.onCompleted: { var historyView = addPlugin("./views/history.qml", {title: "History"}) -- cgit v1.2.3