38 lines
677 B
QML
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()
|
|
}
|
|
}
|