From a586ea01a79152204cbe670b75bb70e24549fb30 Mon Sep 17 00:00:00 2001 From: Stefan Brand Date: Fri, 10 Jan 2014 19:26:46 +0100 Subject: [PATCH] Added copy token on tap --- qml/pages/MainView.qml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/qml/pages/MainView.qml b/qml/pages/MainView.qml index b136e18..a9c7787 100644 --- a/qml/pages/MainView.qml +++ b/qml/pages/MainView.qml @@ -138,11 +138,15 @@ Page { contentHeight: Theme.itemSizeMedium width: parent.width - function remove() { - // Show 5s countdown, then delete from DB and List + function remove() { + // Show 5s countdown, then delete from DB and List remorseAction("Deleting", function() { DB.removeOTP(title, secret); otpListModel.remove(index) }) } + onClicked: { + Clipboard.text = otp + } + ListView.onRemove: animateRemoval() Rectangle { id: listRow