mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
dbed88bd81
commit
e2aaa43d8c
4 changed files with 20 additions and 20 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue