Files
pallectrum/electrum/gui/qml/components/Scan.qml

38 lines
677 B
QML
Raw Normal View History

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