wrap potentially large pages in a flickable, for small form factors
This commit is contained in:
@@ -137,41 +137,49 @@ Item {
|
|||||||
warningtext.text = t.join("")
|
warningtext.text = t.join("")
|
||||||
}
|
}
|
||||||
|
|
||||||
GridLayout {
|
Flickable {
|
||||||
width: parent.width
|
anchors.fill: parent
|
||||||
columns: 1
|
contentHeight: mainLayout.height
|
||||||
|
clip:true
|
||||||
|
interactive: height < contentHeight
|
||||||
|
|
||||||
InfoTextArea {
|
GridLayout {
|
||||||
id: warningtext
|
id: mainLayout
|
||||||
Layout.fillWidth: true
|
width: parent.width
|
||||||
iconStyle: InfoTextArea.IconStyle.Warn
|
columns: 1
|
||||||
}
|
|
||||||
Label { text: qsTr('Your wallet generation seed is:') }
|
|
||||||
SeedTextArea {
|
|
||||||
id: seedtext
|
|
||||||
readOnly: true
|
|
||||||
Layout.fillWidth: true
|
|
||||||
|
|
||||||
BusyIndicator {
|
InfoTextArea {
|
||||||
anchors.centerIn: parent
|
id: warningtext
|
||||||
height: parent.height * 2/3
|
Layout.fillWidth: true
|
||||||
visible: seedtext.text == ''
|
iconStyle: InfoTextArea.IconStyle.Warn
|
||||||
|
}
|
||||||
|
Label { text: qsTr('Your wallet generation seed is:') }
|
||||||
|
SeedTextArea {
|
||||||
|
id: seedtext
|
||||||
|
readOnly: true
|
||||||
|
Layout.fillWidth: true
|
||||||
|
|
||||||
|
BusyIndicator {
|
||||||
|
anchors.centerIn: parent
|
||||||
|
height: parent.height * 2/3
|
||||||
|
visible: seedtext.text == ''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
CheckBox {
|
||||||
|
id: extendcb
|
||||||
|
text: qsTr('Extend seed with custom words')
|
||||||
|
}
|
||||||
|
TextField {
|
||||||
|
id: customwordstext
|
||||||
|
visible: extendcb.checked
|
||||||
|
Layout.fillWidth: true
|
||||||
|
placeholderText: qsTr('Enter your custom word(s)')
|
||||||
|
echoMode: TextInput.Password
|
||||||
|
}
|
||||||
|
Component.onCompleted : {
|
||||||
|
setWarningText(12)
|
||||||
|
bitcoin.generate_seed()
|
||||||
}
|
}
|
||||||
}
|
|
||||||
CheckBox {
|
|
||||||
id: extendcb
|
|
||||||
text: qsTr('Extend seed with custom words')
|
|
||||||
}
|
|
||||||
TextField {
|
|
||||||
id: customwordstext
|
|
||||||
visible: extendcb.checked
|
|
||||||
Layout.fillWidth: true
|
|
||||||
placeholderText: qsTr('Enter your custom word(s)')
|
|
||||||
echoMode: TextInput.Password
|
|
||||||
}
|
|
||||||
Component.onCompleted : {
|
|
||||||
setWarningText(12)
|
|
||||||
bitcoin.generate_seed()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -222,47 +230,55 @@ Item {
|
|||||||
infotext.text = t[seed_type.currentText]
|
infotext.text = t[seed_type.currentText]
|
||||||
}
|
}
|
||||||
|
|
||||||
GridLayout {
|
Flickable {
|
||||||
width: parent.width
|
anchors.fill: parent
|
||||||
columns: 2
|
contentHeight: mainLayout.height
|
||||||
|
clip:true
|
||||||
|
interactive: height < contentHeight
|
||||||
|
|
||||||
Label {
|
GridLayout {
|
||||||
text: qsTr('Seed Type')
|
id: mainLayout
|
||||||
}
|
width: parent.width
|
||||||
ComboBox {
|
columns: 2
|
||||||
id: seed_type
|
|
||||||
model: ['Electrum', 'BIP39', 'SLIP39']
|
Label {
|
||||||
onActivated: setSeedTypeHelpText()
|
text: qsTr('Seed Type')
|
||||||
}
|
}
|
||||||
InfoTextArea {
|
ComboBox {
|
||||||
id: infotext
|
id: seed_type
|
||||||
Layout.fillWidth: true
|
model: ['Electrum', 'BIP39', 'SLIP39']
|
||||||
Layout.columnSpan: 2
|
onActivated: setSeedTypeHelpText()
|
||||||
}
|
}
|
||||||
Label {
|
InfoTextArea {
|
||||||
text: qsTr('Enter your seed')
|
id: infotext
|
||||||
Layout.columnSpan: 2
|
Layout.fillWidth: true
|
||||||
}
|
Layout.columnSpan: 2
|
||||||
SeedTextArea {
|
}
|
||||||
id: seedtext
|
Label {
|
||||||
Layout.fillWidth: true
|
text: qsTr('Enter your seed')
|
||||||
Layout.columnSpan: 2
|
Layout.columnSpan: 2
|
||||||
onTextChanged: {
|
}
|
||||||
checkValid()
|
SeedTextArea {
|
||||||
|
id: seedtext
|
||||||
|
Layout.fillWidth: true
|
||||||
|
Layout.columnSpan: 2
|
||||||
|
onTextChanged: {
|
||||||
|
checkValid()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
CheckBox {
|
||||||
|
id: extendcb
|
||||||
|
Layout.columnSpan: 2
|
||||||
|
text: qsTr('Extend seed with custom words')
|
||||||
|
}
|
||||||
|
TextField {
|
||||||
|
id: customwordstext
|
||||||
|
visible: extendcb.checked
|
||||||
|
Layout.fillWidth: true
|
||||||
|
Layout.columnSpan: 2
|
||||||
|
placeholderText: qsTr('Enter your custom word(s)')
|
||||||
|
echoMode: TextInput.Password
|
||||||
}
|
}
|
||||||
}
|
|
||||||
CheckBox {
|
|
||||||
id: extendcb
|
|
||||||
Layout.columnSpan: 2
|
|
||||||
text: qsTr('Extend seed with custom words')
|
|
||||||
}
|
|
||||||
TextField {
|
|
||||||
id: customwordstext
|
|
||||||
visible: extendcb.checked
|
|
||||||
Layout.fillWidth: true
|
|
||||||
Layout.columnSpan: 2
|
|
||||||
placeholderText: qsTr('Enter your custom word(s)')
|
|
||||||
echoMode: TextInput.Password
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -285,31 +301,39 @@ Item {
|
|||||||
valid = seedvalid && (wizard_data['seed_extend'] ? customwordsvalid : true)
|
valid = seedvalid && (wizard_data['seed_extend'] ? customwordsvalid : true)
|
||||||
}
|
}
|
||||||
|
|
||||||
GridLayout {
|
Flickable {
|
||||||
width: parent.width
|
anchors.fill: parent
|
||||||
columns: 1
|
contentHeight: mainLayout.height
|
||||||
|
clip:true
|
||||||
|
interactive: height < contentHeight
|
||||||
|
|
||||||
InfoTextArea {
|
GridLayout {
|
||||||
Layout.fillWidth: true
|
id: mainLayout
|
||||||
text: qsTr('Your seed is important!') + ' ' +
|
width: parent.width
|
||||||
qsTr('If you lose your seed, your money will be permanently lost.') + ' ' +
|
columns: 1
|
||||||
qsTr('To make sure that you have properly saved your seed, please retype it here.')
|
|
||||||
}
|
InfoTextArea {
|
||||||
Label { text: qsTr('Confirm your seed (re-enter)') }
|
Layout.fillWidth: true
|
||||||
SeedTextArea {
|
text: qsTr('Your seed is important!') + ' ' +
|
||||||
id: confirm
|
qsTr('If you lose your seed, your money will be permanently lost.') + ' ' +
|
||||||
Layout.fillWidth: true
|
qsTr('To make sure that you have properly saved your seed, please retype it here.')
|
||||||
onTextChanged: {
|
|
||||||
checkValid()
|
|
||||||
}
|
}
|
||||||
}
|
Label { text: qsTr('Confirm your seed (re-enter)') }
|
||||||
TextField {
|
SeedTextArea {
|
||||||
id: customwordstext
|
id: confirm
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
placeholderText: qsTr('Enter your custom word(s)')
|
onTextChanged: {
|
||||||
echoMode: TextInput.Password
|
checkValid()
|
||||||
onTextChanged: {
|
}
|
||||||
checkValid()
|
}
|
||||||
|
TextField {
|
||||||
|
id: customwordstext
|
||||||
|
Layout.fillWidth: true
|
||||||
|
placeholderText: qsTr('Enter your custom word(s)')
|
||||||
|
echoMode: TextInput.Password
|
||||||
|
onTextChanged: {
|
||||||
|
checkValid()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user