Update text and fix qml code styles

CURA-5024
This commit is contained in:
Lipu Fei 2018-04-17 16:08:41 +02:00
parent 50153b43a8
commit 4d3acddfa4

View file

@ -72,7 +72,7 @@ UM.Dialog
right: parent.right right: parent.right
} }
text: catalog.i18nc("@text:window", "Cura sends anonymous data so we can improve the print quality and user experience. Below is an example of all the data we send.") text: catalog.i18nc("@text:window", "Cura sends anonymous data to Ultimaker in order to improve the print quality and user experience. Below is an example of all the data that is sent.")
wrapMode: Text.WordWrap wrapMode: Text.WordWrap
} }
@ -107,7 +107,7 @@ UM.Dialog
RadioButton RadioButton
{ {
id: dontSendButton id: dontSendButton
text: catalog.i18nc("@text:window", "I don't want to send these settings") text: catalog.i18nc("@text:window", "I don't want to send these data")
exclusiveGroup: group exclusiveGroup: group
onClicked: onClicked:
{ {
@ -117,7 +117,7 @@ UM.Dialog
RadioButton RadioButton
{ {
id: allowSendButton id: allowSendButton
text: catalog.i18nc("@text:window", "Allow sending these settings to improve Cura") text: catalog.i18nc("@text:window", "Allow sending these data to Ultimaker and help us improve Cura")
exclusiveGroup: group exclusiveGroup: group
onClicked: onClicked:
{ {
@ -138,8 +138,9 @@ UM.Dialog
Button Button
{ {
anchors.right: parent.right anchors.right: parent.right
text: catalog.i18nc("@action:button", "Ok") text: catalog.i18nc("@action:button", "OK")
onClicked: { onClicked:
{
baseDialog.accepted() baseDialog.accepted()
baseDialog.hide() baseDialog.hide()
} }
@ -149,7 +150,8 @@ UM.Dialog
{ {
anchors.left: parent.left anchors.left: parent.left
text: catalog.i18nc("@action:button", "Cancel") text: catalog.i18nc("@action:button", "Cancel")
onClicked: { onClicked:
{
baseDialog.rejected() baseDialog.rejected()
baseDialog.hide() baseDialog.hide()
} }