Merge pull request #2314

8abf8f8 wizard: bug fixes (selsta)
This commit is contained in:
luigi1111 2019-08-06 15:02:36 -05:00
commit 671ddf5bef
No known key found for this signature in database
GPG key ID: F4ACA0183641E010
16 changed files with 49 additions and 19 deletions

View file

@ -194,63 +194,63 @@ Rectangle {
State { State {
name: "wizardLanguage" name: "wizardLanguage"
PropertyChanges { target: wizardStateView; currentView: wizardStateView.wizardLanguageView } PropertyChanges { target: wizardStateView; currentView: wizardStateView.wizardLanguageView }
PropertyChanges { target: wizardFlickable; contentHeight: wizardStateView.wizardLanguageView.childrenRect.height + wizardController.flickableHeightMargin } PropertyChanges { target: wizardFlickable; contentHeight: wizardStateView.wizardLanguageView.pageHeight + 80 }
}, State { }, State {
name: "wizardHome" name: "wizardHome"
PropertyChanges { target: wizardStateView; currentView: wizardStateView.wizardHomeView } PropertyChanges { target: wizardStateView; currentView: wizardStateView.wizardHomeView }
PropertyChanges { target: wizardFlickable; contentHeight: wizardStateView.wizardHomeView.childrenRect.height + wizardController.flickableHeightMargin } PropertyChanges { target: wizardFlickable; contentHeight: wizardStateView.wizardHomeView.pageHeight + 80 }
}, State { }, State {
name: "wizardCreateWallet1" name: "wizardCreateWallet1"
PropertyChanges { target: wizardStateView; currentView: wizardStateView.wizardCreateWallet1View } PropertyChanges { target: wizardStateView; currentView: wizardStateView.wizardCreateWallet1View }
PropertyChanges { target: wizardFlickable; contentHeight: wizardStateView.wizardCreateWallet1View.childrenRect.height + wizardController.flickableHeightMargin } PropertyChanges { target: wizardFlickable; contentHeight: wizardStateView.wizardCreateWallet1View.pageHeight + 80 }
}, State { }, State {
name: "wizardCreateWallet2" name: "wizardCreateWallet2"
PropertyChanges { target: wizardStateView; currentView: wizardStateView.wizardCreateWallet2View } PropertyChanges { target: wizardStateView; currentView: wizardStateView.wizardCreateWallet2View }
PropertyChanges { target: wizardFlickable; contentHeight: wizardStateView.wizardCreateWallet2View.childrenRect.height + wizardController.flickableHeightMargin } PropertyChanges { target: wizardFlickable; contentHeight: wizardStateView.wizardCreateWallet2View.pageHeight + 80 }
}, State { }, State {
name: "wizardCreateWallet3" name: "wizardCreateWallet3"
PropertyChanges { target: wizardStateView; currentView: wizardStateView.wizardCreateWallet3View } PropertyChanges { target: wizardStateView; currentView: wizardStateView.wizardCreateWallet3View }
PropertyChanges { target: wizardFlickable; contentHeight: wizardStateView.wizardCreateWallet3View.height + wizardController.flickableHeightMargin + 400 } PropertyChanges { target: wizardFlickable; contentHeight: wizardStateView.wizardCreateWallet3View.pageHeight + 80 }
}, State { }, State {
name: "wizardCreateWallet4" name: "wizardCreateWallet4"
PropertyChanges { target: wizardStateView; currentView: wizardStateView.wizardCreateWallet4View } PropertyChanges { target: wizardStateView; currentView: wizardStateView.wizardCreateWallet4View }
PropertyChanges { target: wizardFlickable; contentHeight: wizardStateView.wizardCreateWallet4View.childrenRect.height + wizardController.flickableHeightMargin } PropertyChanges { target: wizardFlickable; contentHeight: wizardStateView.wizardCreateWallet4View.pageHeight + 80 }
}, State { }, State {
name: "wizardRestoreWallet1" name: "wizardRestoreWallet1"
PropertyChanges { target: wizardStateView; currentView: wizardStateView.wizardRestoreWallet1View } PropertyChanges { target: wizardStateView; currentView: wizardStateView.wizardRestoreWallet1View }
PropertyChanges { target: wizardFlickable; contentHeight: wizardStateView.wizardRestoreWallet1View.childrenRect.height + wizardController.flickableHeightMargin } PropertyChanges { target: wizardFlickable; contentHeight: wizardStateView.wizardRestoreWallet1View.pageHeight + 80 }
}, State { }, State {
name: "wizardRestoreWallet2" name: "wizardRestoreWallet2"
PropertyChanges { target: wizardStateView; currentView: wizardStateView.wizardRestoreWallet2View } PropertyChanges { target: wizardStateView; currentView: wizardStateView.wizardRestoreWallet2View }
PropertyChanges { target: wizardFlickable; contentHeight: wizardStateView.wizardRestoreWallet2View.childrenRect.height + wizardController.flickableHeightMargin } PropertyChanges { target: wizardFlickable; contentHeight: wizardStateView.wizardRestoreWallet2View.pageHeight + 80 }
}, State { }, State {
name: "wizardRestoreWallet3" name: "wizardRestoreWallet3"
PropertyChanges { target: wizardStateView; currentView: wizardStateView.wizardRestoreWallet3View } PropertyChanges { target: wizardStateView; currentView: wizardStateView.wizardRestoreWallet3View }
PropertyChanges { target: wizardFlickable; contentHeight: wizardStateView.wizardRestoreWallet3View.childrenRect.height + wizardController.flickableHeightMargin + 400 } PropertyChanges { target: wizardFlickable; contentHeight: wizardStateView.wizardRestoreWallet3View.pageHeight + 80 }
}, State { }, State {
name: "wizardRestoreWallet4" name: "wizardRestoreWallet4"
PropertyChanges { target: wizardStateView; currentView: wizardStateView.wizardRestoreWallet4View } PropertyChanges { target: wizardStateView; currentView: wizardStateView.wizardRestoreWallet4View }
PropertyChanges { target: wizardFlickable; contentHeight: wizardStateView.wizardRestoreWallet4View.childrenRect.height + wizardController.flickableHeightMargin } PropertyChanges { target: wizardFlickable; contentHeight: wizardStateView.wizardRestoreWallet4View.pageHeight + 80 }
}, State { }, State {
name: "wizardCreateDevice1" name: "wizardCreateDevice1"
PropertyChanges { target: wizardStateView; currentView: wizardStateView.wizardCreateDevice1View } PropertyChanges { target: wizardStateView; currentView: wizardStateView.wizardCreateDevice1View }
PropertyChanges { target: wizardFlickable; contentHeight: wizardStateView.wizardCreateDevice1View.childrenRect.height + wizardController.flickableHeightMargin } PropertyChanges { target: wizardFlickable; contentHeight: wizardStateView.wizardCreateDevice1View.pageHeight + 80 }
}, State { }, State {
name: "wizardOpenWallet1" name: "wizardOpenWallet1"
PropertyChanges { target: wizardStateView; currentView: wizardStateView.wizardOpenWallet1View } PropertyChanges { target: wizardStateView; currentView: wizardStateView.wizardOpenWallet1View }
PropertyChanges { target: wizardFlickable; contentHeight: wizardStateView.wizardOpenWallet1View.childrenRect.height + wizardController.flickableHeightMargin } PropertyChanges { target: wizardFlickable; contentHeight: wizardStateView.wizardOpenWallet1View.pageHeight + 80 }
}, State { }, State {
name: "wizardModeSelection" name: "wizardModeSelection"
PropertyChanges { target: wizardStateView; currentView: wizardStateView.wizardModeSelectionView } PropertyChanges { target: wizardStateView; currentView: wizardStateView.wizardModeSelectionView }
PropertyChanges { target: wizardFlickable; contentHeight: wizardStateView.wizardModeSelectionView.childrenRect.height + wizardController.flickableHeightMargin } PropertyChanges { target: wizardFlickable; contentHeight: wizardStateView.wizardModeSelectionView.pageHeight + 80 }
}, State { }, State {
name: "wizardModeRemoteNodeWarning" name: "wizardModeRemoteNodeWarning"
PropertyChanges { target: wizardStateView; currentView: wizardStateView.wizardModeRemoteNodeWarningView } PropertyChanges { target: wizardStateView; currentView: wizardStateView.wizardModeRemoteNodeWarningView }
PropertyChanges { target: wizardFlickable; contentHeight: wizardStateView.wizardModeRemoteNodeWarningView.childrenRect.height + wizardController.flickableHeightMargin } PropertyChanges { target: wizardFlickable; contentHeight: wizardStateView.wizardModeRemoteNodeWarningView.pageHeight + 80 }
}, State { }, State {
name: "wizardModeBootstrap" name: "wizardModeBootstrap"
PropertyChanges { target: wizardStateView; currentView: wizardStateView.wizardModeBootstrapView } PropertyChanges { target: wizardStateView; currentView: wizardStateView.wizardModeBootstrapView }
PropertyChanges { target: wizardFlickable; contentHeight: wizardStateView.wizardModeBootstrapView.childrenRect.height + wizardController.flickableHeightMargin } PropertyChanges { target: wizardFlickable; contentHeight: wizardStateView.wizardModeBootstrapView.pageHeight + 80 }
} }
] ]

View file

@ -41,6 +41,7 @@ Rectangle {
id: wizardCreateDevice1 id: wizardCreateDevice1
color: "transparent" color: "transparent"
property alias pageHeight: pageRoot.height
property string viewName: "wizardCreateDevice1" property string viewName: "wizardCreateDevice1"
property var deviceName: deviceNameModel.get(deviceNameDropdown.currentIndex).column2 property var deviceName: deviceNameModel.get(deviceNameDropdown.currentIndex).column2
@ -58,6 +59,7 @@ Rectangle {
} }
ColumnLayout { ColumnLayout {
id: pageRoot
Layout.alignment: Qt.AlignHCenter; Layout.alignment: Qt.AlignHCenter;
width: parent.width - 100 width: parent.width - 100
Layout.fillWidth: true Layout.fillWidth: true

View file

@ -39,10 +39,12 @@ Rectangle {
id: wizardCreateWallet1 id: wizardCreateWallet1
color: "transparent" color: "transparent"
property alias pageHeight: pageRoot.height
property string viewName: "wizardCreateWallet1" property string viewName: "wizardCreateWallet1"
property alias seed: seed property alias seed: seed
ColumnLayout { ColumnLayout {
id: pageRoot
Layout.alignment: Qt.AlignHCenter; Layout.alignment: Qt.AlignHCenter;
width: parent.width - 100 width: parent.width - 100
Layout.fillWidth: true Layout.fillWidth: true

View file

@ -36,9 +36,11 @@ Rectangle {
id: wizardCreateWallet2 id: wizardCreateWallet2
color: "transparent" color: "transparent"
property alias pageHeight: pageRoot.height
property string viewName: "wizardCreateWallet2" property string viewName: "wizardCreateWallet2"
ColumnLayout { ColumnLayout {
id: pageRoot
Layout.alignment: Qt.AlignHCenter; Layout.alignment: Qt.AlignHCenter;
width: parent.width - 100 width: parent.width - 100
Layout.fillWidth: true Layout.fillWidth: true

View file

@ -36,9 +36,11 @@ Rectangle {
id: wizardCreateWallet3 id: wizardCreateWallet3
color: "transparent" color: "transparent"
property alias pageHeight: pageRoot.height
property string viewName: "wizardCreateWallet3" property string viewName: "wizardCreateWallet3"
ColumnLayout { ColumnLayout {
id: pageRoot
Layout.alignment: Qt.AlignHCenter; Layout.alignment: Qt.AlignHCenter;
width: parent.width - 100 width: parent.width - 100
Layout.fillWidth: true Layout.fillWidth: true

View file

@ -37,9 +37,11 @@ Rectangle {
id: wizardCreateWallet4 id: wizardCreateWallet4
color: "transparent" color: "transparent"
property alias pageHeight: pageRoot.height
property string viewName: "wizardCreateWallet4" property string viewName: "wizardCreateWallet4"
ColumnLayout { ColumnLayout {
id: pageRoot
Layout.alignment: Qt.AlignHCenter; Layout.alignment: Qt.AlignHCenter;
width: parent.width - 100 width: parent.width - 100
Layout.fillWidth: true Layout.fillWidth: true

View file

@ -37,10 +37,11 @@ import "../components" as MoneroComponents
Rectangle { Rectangle {
id: wizardHome id: wizardHome
color: "transparent" color: "transparent"
property alias pageHeight: pageRoot.height
property string viewName: "wizardHome" property string viewName: "wizardHome"
ColumnLayout { ColumnLayout {
id: pageRoot
Layout.alignment: Qt.AlignHCenter; Layout.alignment: Qt.AlignHCenter;
width: parent.width - 100 width: parent.width - 100
Layout.fillWidth: true Layout.fillWidth: true

View file

@ -39,10 +39,11 @@ Rectangle {
Layout.fillWidth: true Layout.fillWidth: true
color: "transparent" color: "transparent"
property alias pageHeight: pageRoot.height
property string viewName: "wizardLanguage" property string viewName: "wizardLanguage"
ColumnLayout { ColumnLayout {
id: root id: pageRoot
anchors.top: parent.top anchors.top: parent.top
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right

View file

@ -37,10 +37,12 @@ Rectangle {
id: wizardModeBootstrapWarning id: wizardModeBootstrapWarning
color: "transparent" color: "transparent"
property string viewName: "wizardModeRemoteNodeWarning" property alias pageHeight: pageRoot.height
property string viewName: "wizardModeBootstrap"
property bool understood: false property bool understood: false
ColumnLayout { ColumnLayout {
id: pageRoot
Layout.alignment: Qt.AlignHCenter; Layout.alignment: Qt.AlignHCenter;
width: parent.width - 100 width: parent.width - 100
Layout.fillWidth: true Layout.fillWidth: true
@ -79,7 +81,7 @@ Rectangle {
} }
MoneroComponents.TextPlain { MoneroComponents.TextPlain {
text: qsTr("Temporary use of remote nodes is useful in order to use Monero immediately (hence the name <i>bootstrap</i>), however be aware that when using remote nodes (including with the bootstrap setting), nodes could track your IP address, track your \"restore height\" and associated block request data, and send you inaccurate information to learn more about transactions you make.") + translationManager.emptyString text: qsTr("Temporary use of remote nodes is useful in order to use Monero immediately (hence the name bootstrap), however be aware that when using remote nodes (including with the bootstrap setting), nodes could track your IP address, track your \"restore height\" and associated block request data, and send you inaccurate information to learn more about transactions you make.") + translationManager.emptyString
wrapMode: Text.Wrap wrapMode: Text.Wrap
Layout.topMargin: 8 Layout.topMargin: 8
Layout.fillWidth: true Layout.fillWidth: true

View file

@ -37,10 +37,12 @@ Rectangle {
id: wizardModeRemoteNodeWarning id: wizardModeRemoteNodeWarning
color: "transparent" color: "transparent"
property alias pageHeight: pageRoot.height
property string viewName: "wizardModeRemoteNodeWarning" property string viewName: "wizardModeRemoteNodeWarning"
property bool understood: false property bool understood: false
ColumnLayout { ColumnLayout {
id: pageRoot
Layout.alignment: Qt.AlignHCenter; Layout.alignment: Qt.AlignHCenter;
width: parent.width - 100 width: parent.width - 100
Layout.fillWidth: true Layout.fillWidth: true

View file

@ -38,9 +38,11 @@ Rectangle {
id: wizardModeSelection1 id: wizardModeSelection1
color: "transparent" color: "transparent"
property alias pageHeight: pageRoot.height
property string viewName: "wizardModeSelection1" property string viewName: "wizardModeSelection1"
ColumnLayout { ColumnLayout {
id: pageRoot
Layout.alignment: Qt.AlignHCenter; Layout.alignment: Qt.AlignHCenter;
width: parent.width - 100 width: parent.width - 100
Layout.fillWidth: true Layout.fillWidth: true
@ -77,6 +79,7 @@ Rectangle {
onMenuClicked: { onMenuClicked: {
if(appWindow.persistentSettings.nettype == 0){ if(appWindow.persistentSettings.nettype == 0){
appWindow.changeWalletMode(0); appWindow.changeWalletMode(0);
wizardController.wizardStackView.backTransition = false;
wizardController.wizardState = 'wizardModeRemoteNodeWarning'; wizardController.wizardState = 'wizardModeRemoteNodeWarning';
} }
} }
@ -106,6 +109,7 @@ Rectangle {
onMenuClicked: { onMenuClicked: {
if(appWindow.persistentSettings.nettype == 0){ if(appWindow.persistentSettings.nettype == 0){
appWindow.changeWalletMode(1); appWindow.changeWalletMode(1);
wizardController.wizardStackView.backTransition = false;
wizardController.wizardState = 'wizardModeBootstrap'; wizardController.wizardState = 'wizardModeBootstrap';
} }
} }

View file

@ -43,10 +43,12 @@ Rectangle {
id: wizardOpenWallet1 id: wizardOpenWallet1
color: "transparent" color: "transparent"
property alias pageHeight: pageRoot.height
property string viewName: "wizardOpenWallet1" property string viewName: "wizardOpenWallet1"
property int walletCount: walletKeysFilesModel.rowCount() property int walletCount: walletKeysFilesModel.rowCount()
ColumnLayout { ColumnLayout {
id: pageRoot
Layout.alignment: Qt.AlignHCenter; Layout.alignment: Qt.AlignHCenter;
width: parent.width - 100 width: parent.width - 100
Layout.fillWidth: true Layout.fillWidth: true

View file

@ -38,6 +38,7 @@ Rectangle {
id: wizardRestoreWallet1 id: wizardRestoreWallet1
color: "transparent" color: "transparent"
property alias pageHeight: pageRoot.height
property string viewName: "wizardRestoreWallet1" property string viewName: "wizardRestoreWallet1"
function verify() { function verify() {
@ -88,6 +89,7 @@ Rectangle {
} }
ColumnLayout { ColumnLayout {
id: pageRoot
Layout.alignment: Qt.AlignHCenter; Layout.alignment: Qt.AlignHCenter;
width: parent.width - 100 width: parent.width - 100
Layout.fillWidth: true Layout.fillWidth: true

View file

@ -38,10 +38,12 @@ Rectangle {
id: wizardRestoreWallet2 id: wizardRestoreWallet2
color: "transparent" color: "transparent"
property alias pageHeight: pageRoot.height
property string viewName: "wizardRestoreWallet2" property string viewName: "wizardRestoreWallet2"
property int recoveryMode: 1 property int recoveryMode: 1
ColumnLayout { ColumnLayout {
id: pageRoot
Layout.alignment: Qt.AlignHCenter; Layout.alignment: Qt.AlignHCenter;
width: parent.width - 100 width: parent.width - 100
Layout.fillWidth: true Layout.fillWidth: true

View file

@ -38,6 +38,7 @@ Rectangle {
id: wizardRestoreWallet3 id: wizardRestoreWallet3
color: "transparent" color: "transparent"
property alias pageHeight: pageRoot.height
property string viewName: "wizardRestoreWallet3" property string viewName: "wizardRestoreWallet3"
property int recoveryMode: 1 property int recoveryMode: 1
@ -47,6 +48,7 @@ Rectangle {
} }
ColumnLayout { ColumnLayout {
id: pageRoot
Layout.alignment: Qt.AlignHCenter; Layout.alignment: Qt.AlignHCenter;
width: parent.width - 100 width: parent.width - 100
Layout.fillWidth: true Layout.fillWidth: true

View file

@ -37,9 +37,11 @@ Rectangle {
id: wizardRestoreWallet4 id: wizardRestoreWallet4
color: "transparent" color: "transparent"
property alias pageHeight: pageRoot.height
property string viewName: "wizardRestoreWallet4" property string viewName: "wizardRestoreWallet4"
ColumnLayout { ColumnLayout {
id: pageRoot
Layout.alignment: Qt.AlignHCenter; Layout.alignment: Qt.AlignHCenter;
width: parent.width - 100 width: parent.width - 100
Layout.fillWidth: true Layout.fillWidth: true