Browse Source

qml: don't use predictive text for fields where it makes no sense

master
Sander van Grieken 2 years ago
parent
commit
92bff08ba5
No known key found for this signature in database
GPG Key ID: 9BCF8209EA402EBA
  1. 4
      electrum/gui/qml/components/Addresses.qml
  2. 3
      electrum/gui/qml/components/SignVerifyMessageDialog.qml
  3. 3
      electrum/gui/qml/components/controls/ProxyConfig.qml
  4. 1
      electrum/gui/qml/components/controls/ServerConfig.qml
  5. 2
      electrum/gui/qml/components/wizard/WCConfirmSeed.qml
  6. 1
      electrum/gui/qml/components/wizard/WCCreateSeed.qml
  7. 2
      electrum/gui/qml/components/wizard/WCHaveSeed.qml
  8. 2
      electrum/gui/qml/components/wizard/WCScriptAndDerivation.qml
  9. 1
      electrum/gui/qml/components/wizard/WCWalletName.qml

4
electrum/gui/qml/components/Addresses.qml

@ -85,8 +85,12 @@ Pane {
id: searchEdit
Layout.fillWidth: true
Layout.columnSpan: 3
placeholderText: qsTr('search')
inputMethodHints: Qt.ImhNoPredictiveText
onTextChanged: listview.filterModel.filterText = text
Image {
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter

3
electrum/gui/qml/components/SignVerifyMessageDialog.qml

@ -133,6 +133,7 @@ ElDialog {
: constants.colorError
}
}
RowLayout {
Layout.fillWidth: true
ElTextArea {
@ -142,6 +143,8 @@ ElDialog {
Layout.minimumHeight: fontMetrics.lineSpacing * 4 + topPadding + bottomPadding
font.family: FixedFont
wrapMode: TextInput.Wrap
inputMethodHints: Qt.ImhNoPredictiveText
background: PaneInsetBackground {
baseColor: _verified == SignVerifyMessageDialog.Check.Unknown
? constants.darkerDialogBackground

3
electrum/gui/qml/components/controls/ProxyConfig.qml

@ -74,6 +74,7 @@ Item {
TextField {
id: address
enabled: proxy_enabled_cb.checked
inputMethodHints: Qt.ImhNoPredictiveText
}
Label {
@ -84,6 +85,7 @@ Item {
TextField {
id: port
enabled: proxy_enabled_cb.checked
inputMethodHints: Qt.ImhDigitsOnly
}
Label {
@ -94,6 +96,7 @@ Item {
TextField {
id: username_tf
enabled: proxy_enabled_cb.checked
inputMethodHints: Qt.ImhNoPredictiveText
}
Label {

1
electrum/gui/qml/components/controls/ServerConfig.qml

@ -41,6 +41,7 @@ Item {
id: address_tf
enabled: !auto_server_cb.checked
width: parent.width
inputMethodHints: Qt.ImhNoPredictiveText
}
}

2
electrum/gui/qml/components/wizard/WCConfirmSeed.qml

@ -51,6 +51,8 @@ WizardComponent {
id: customwordstext
Layout.fillWidth: true
placeholderText: qsTr('Enter your custom word(s)')
inputMethodHints: Qt.ImhNoPredictiveText
onTextChanged: checkValid()
}
}

1
electrum/gui/qml/components/wizard/WCCreateSeed.qml

@ -81,6 +81,7 @@ WizardComponent {
visible: extendcb.checked
Layout.fillWidth: true
placeholderText: qsTr('Enter your custom word(s)')
inputMethodHints: Qt.ImhNoPredictiveText
}
Component.onCompleted : {

2
electrum/gui/qml/components/wizard/WCHaveSeed.qml

@ -231,6 +231,8 @@ WizardComponent {
Layout.fillWidth: true
Layout.columnSpan: 2
placeholderText: qsTr('Enter your custom word(s)')
inputMethodHints: Qt.ImhNoPredictiveText
onTextChanged: startValidationTimer()
}
}

2
electrum/gui/qml/components/wizard/WCScriptAndDerivation.qml

@ -171,6 +171,8 @@ WizardComponent {
id: derivationpathtext
Layout.fillWidth: true
Layout.leftMargin: constants.paddingMedium
inputMethodHints: Qt.ImhNoPredictiveText
onTextChanged: validate()
}

1
electrum/gui/qml/components/wizard/WCWalletName.qml

@ -18,6 +18,7 @@ WizardComponent {
id: wallet_name
focus: true
text: Daemon.suggestWalletName()
inputMethodHints: Qt.ImhNoPredictiveText
}
}

Loading…
Cancel
Save