2021-04-05 12:24:45 +02:00
|
|
|
import QtQuick 2.6
|
|
|
|
|
import QtQuick.Controls 2.0
|
|
|
|
|
|
2022-04-05 17:24:20 +02:00
|
|
|
import org.electrum 1.0
|
|
|
|
|
|
2022-04-06 13:52:21 +02:00
|
|
|
import "controls"
|
|
|
|
|
|
2021-04-05 12:24:45 +02:00
|
|
|
Item {
|
2022-03-29 16:36:20 +02:00
|
|
|
id: scanPage
|
|
|
|
|
property string title: qsTr('Scan')
|
2021-04-05 12:24:45 +02:00
|
|
|
|
|
|
|
|
property bool toolbar: false
|
|
|
|
|
|
2022-03-29 16:36:20 +02:00
|
|
|
property string scanData
|
2022-04-05 17:24:20 +02:00
|
|
|
property string error
|
2022-03-29 16:36:20 +02:00
|
|
|
|
|
|
|
|
signal found
|
|
|
|
|
|
2021-04-05 12:24:45 +02:00
|
|
|
QRScan {
|
|
|
|
|
anchors.top: parent.top
|
2021-04-07 16:50:34 +02:00
|
|
|
anchors.bottom: parent.bottom
|
2021-04-05 12:24:45 +02:00
|
|
|
width: parent.width
|
2022-03-29 16:36:20 +02:00
|
|
|
|
|
|
|
|
onFound: {
|
|
|
|
|
scanPage.scanData = scanData
|
|
|
|
|
scanPage.found()
|
|
|
|
|
}
|
2021-04-05 12:24:45 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Button {
|
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
|
id: button
|
|
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
|
text: 'Cancel'
|
|
|
|
|
onClicked: app.stack.pop()
|
|
|
|
|
}
|
|
|
|
|
}
|