diff options
author | Jan Mulder <jlmulder@xs4all.nl> | 2017-09-29 09:15:43 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-09-29 08:13:25 -0700 |
commit | e2aaa43d8c53289928e8d9cbc2cbad5e4518da29 (patch) | |
tree | d4ff93ed8a377c5fb63fa91ef2814b97903ab339 /mobile-widgets/qml/Settings.qml | |
parent | dbed88bd810c545a100840d02f2e72168680ed72 (diff) | |
download | subsurface-e2aaa43d8c53289928e8d9cbc2cbad5e4518da29.tar.gz |
QML UI: cleanup some whitespace and string formatting
This addresses some review comment on whitespace and translated
string formatting.
In the string formatting, a tiny additional change is made.
I wanted the email address in the explanation text in a bold
font. Using the HTML <b> for this, removed the /n newline
characters in the output. Apparantly, mixing these two
formatting styles does not work. No problem, replaced the
/n to HTML style too.
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'mobile-widgets/qml/Settings.qml')
-rw-r--r-- | mobile-widgets/qml/Settings.qml | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/mobile-widgets/qml/Settings.qml b/mobile-widgets/qml/Settings.qml index 2dc77bbc4..c66226169 100644 --- a/mobile-widgets/qml/Settings.qml +++ b/mobile-widgets/qml/Settings.qml @@ -37,17 +37,17 @@ Kirigami.ScrollablePage { Kirigami.Label { text: qsTr("Email") Layout.alignment: Qt.AlignRight - Layout.preferredWidth:gridWidth * 0.15 + Layout.preferredWidth: gridWidth * 0.15 Layout.preferredHeight: Kirigami.Units.gridUnit * 2 } Kirigami.Label { - text: manager.credentialStatus === QMLManager.CS_NOCLOUD?qsTr("Not applicable"):manager.cloudUserName + text: manager.credentialStatus === QMLManager.CS_NOCLOUD ? qsTr("Not applicable") : manager.cloudUserName Layout.alignment: Qt.AlignRight - Layout.preferredWidth:gridWidth * 0.60 + Layout.preferredWidth: gridWidth * 0.60 Layout.preferredHeight: Kirigami.Units.gridUnit * 2 } SsrfButton { - id:changeCloudSettings + id: changeCloudSettings Layout.alignment: Qt.AlignRight text: qsTr("Change") onClicked: { @@ -58,13 +58,13 @@ Kirigami.ScrollablePage { Kirigami.Label { text: qsTr("Status") Layout.alignment: Qt.AlignRight - Layout.preferredWidth:gridWidth * 0.15 + Layout.preferredWidth: gridWidth * 0.15 Layout.preferredHeight: Kirigami.Units.gridUnit * 2 } Kirigami.Label { text: describe[manager.credentialStatus] Layout.alignment: Qt.AlignRight - Layout.preferredWidth:gridWidth * 0.60 + Layout.preferredWidth: gridWidth * 0.60 Layout.preferredHeight: Kirigami.Units.gridUnit * 2 } } @@ -269,7 +269,7 @@ Kirigami.ScrollablePage { Kirigami.Label { text: qsTr("Distance threshold (meters)") Layout.alignment: Qt.AlignRight - Layout.preferredWidth:gridWidth * 0.75 + Layout.preferredWidth: gridWidth * 0.75 } TextField { |