Files
pallectrum/electrum/gui/qml/components/Scan.qml
Sander van Grieken d52cd2f2e6 qml: don't auto-pop Scan
TODO: handle cancel by signal too
2022-08-16 16:35:46 +02:00

38 lines
677 B
QML

import QtQuick 2.6
import QtQuick.Controls 2.0
import org.electrum 1.0
import "controls"
Item {
id: scanPage
property string title: qsTr('Scan')
property bool toolbar: false
property string scanData
property string error
signal found
QRScan {
anchors.top: parent.top
anchors.bottom: parent.bottom
width: parent.width
onFound: {
scanPage.scanData = scanData
scanPage.found()
}
}
Button {
anchors.horizontalCenter: parent.horizontalCenter
id: button
anchors.bottom: parent.bottom
text: 'Cancel'
onClicked: app.stack.pop()
}
}