1
0
Fork 0
mirror of https://github.com/seiichiro0185/sailotp.git synced 2024-11-22 07:39:42 +00:00

Added copy token on tap

This commit is contained in:
seiichiro 2014-01-10 19:26:46 +01:00
parent 7f781b8d90
commit a586ea01a7

View file

@ -138,11 +138,15 @@ Page {
contentHeight: Theme.itemSizeMedium contentHeight: Theme.itemSizeMedium
width: parent.width width: parent.width
function remove() { function remove() {
// Show 5s countdown, then delete from DB and List // Show 5s countdown, then delete from DB and List
remorseAction("Deleting", function() { DB.removeOTP(title, secret); otpListModel.remove(index) }) remorseAction("Deleting", function() { DB.removeOTP(title, secret); otpListModel.remove(index) })
} }
onClicked: {
Clipboard.text = otp
}
ListView.onRemove: animateRemoval() ListView.onRemove: animateRemoval()
Rectangle { Rectangle {
id: listRow id: listRow