mirror of
https://github.com/logos-blockchain/lez-programs.git
synced 2026-07-17 20:39:28 +00:00
Add program-neutral wallet access, a stable account model, reusable QML controls, transaction confirmation, submitted-transaction presentation, and isolated contract tests.\n\nRefs #227
27 lines
508 B
QML
27 lines
508 B
QML
import QtQuick
|
|
|
|
WalletIconButton {
|
|
id: root
|
|
|
|
signal copyRequested
|
|
|
|
property bool copied: false
|
|
|
|
accessibleName: root.copied ? qsTr("Copied") : qsTr("Copy")
|
|
iconSource: root.copied
|
|
? Qt.resolvedUrl("icons/checkmark.svg")
|
|
: Qt.resolvedUrl("icons/copy.svg")
|
|
|
|
Timer {
|
|
id: resetTimer
|
|
interval: 1500
|
|
onTriggered: root.copied = false
|
|
}
|
|
|
|
onClicked: {
|
|
root.copyRequested()
|
|
root.copied = true
|
|
resetTimer.restart()
|
|
}
|
|
}
|