Ricardo Guilherme Schmidt ea4fcc2c6c
feat(wallet): add reusable wallet modules
Add program-neutral wallet access, a stable account model, reusable QML controls, transaction confirmation, submitted-transaction presentation, and isolated contract tests.\n\nRefs #227
2026-07-16 14:08:38 +02:00

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()
}
}