1
0

add input method hints

This commit is contained in:
Sander van Grieken
2022-03-30 18:00:36 +02:00
parent 5e039a215a
commit 3942745270
3 changed files with 7 additions and 3 deletions

View File

@@ -39,6 +39,7 @@ Pane {
id: amount
font.family: FixedFont
Layout.fillWidth: true
inputMethodHints: Qt.ImhPreferNumbers
}
Label {
@@ -82,6 +83,7 @@ Pane {
id: amountFiat
font.family: FixedFont
Layout.fillWidth: true
inputMethodHints: Qt.ImhDigitsOnly
}
Label {

View File

@@ -7,11 +7,12 @@ TextArea {
id: seedtext
Layout.fillWidth: true
Layout.minimumHeight: 80
rightPadding: 16
leftPadding: 16
rightPadding: constants.paddingLarge
leftPadding: constants.paddingLarge
wrapMode: TextInput.WordWrap
font.bold: true
font.pixelSize: 18
font.pixelSize: constants.fontSizeLarge
inputMethodHints: Qt.ImhSensitiveData | Qt.ImhPreferLowercase | Qt.ImhNoPredictiveText
background: Rectangle {
color: "transparent"
border.color: Material.accentColor

View File

@@ -42,6 +42,7 @@ Pane {
id: amount
font.family: FixedFont
placeholderText: qsTr('Amount')
inputMethodHints: Qt.ImhPreferNumbers
}
Label {