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 id: amount
font.family: FixedFont font.family: FixedFont
Layout.fillWidth: true Layout.fillWidth: true
inputMethodHints: Qt.ImhPreferNumbers
} }
Label { Label {
@@ -82,6 +83,7 @@ Pane {
id: amountFiat id: amountFiat
font.family: FixedFont font.family: FixedFont
Layout.fillWidth: true Layout.fillWidth: true
inputMethodHints: Qt.ImhDigitsOnly
} }
Label { Label {

View File

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

View File

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