Commit 1ebae809 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.propertyEditor: add qsTr() for translation

parent 2e582c3f
...@@ -48,7 +48,7 @@ QWidget { ...@@ -48,7 +48,7 @@ QWidget {
ExpressionEdit { ExpressionEdit {
id: textEdit; id: textEdit;
styleSheet: "QTextEdit {border-radius: 0px;}" styleSheet: "QTextEdit {border-radius: 0px;}"
documentTitle: "Expression" documentTitle: qsTr("Expression")
width: expressionEdit.width width: expressionEdit.width
height: expressionEdit.height height: expressionEdit.height
......
...@@ -61,14 +61,14 @@ QToolButton { ...@@ -61,14 +61,14 @@ QToolButton {
actions: [ actions: [
QAction { QAction {
text: "Reset"; text: qsTr("Reset")
onTriggered: { onTriggered: {
backendValue.resetValue(); backendValue.resetValue();
} }
}, },
QAction { QAction {
text: "Set Expression"; text: qsTr("Set Expression");
onTriggered: { onTriggered: {
expressionEdit.globalY = extendedFunctionButton.globalY; expressionEdit.globalY = extendedFunctionButton.globalY;
expressionEdit.backendValue = extendedFunctionButton.backendValue expressionEdit.backendValue = extendedFunctionButton.backendValue
......
...@@ -12,7 +12,7 @@ GroupBox { ...@@ -12,7 +12,7 @@ GroupBox {
layout: HorizontalLayout { layout: HorizontalLayout {
rightMargin: 12 rightMargin: 12
Label { Label {
text: "Font" text: qsTr("Font")
} }
FontComboBox { FontComboBox {
id: fontSelector id: fontSelector
...@@ -28,7 +28,7 @@ GroupBox { ...@@ -28,7 +28,7 @@ GroupBox {
IntEditor { IntEditor {
maximumWidth: 200 maximumWidth: 200
caption: "Size" caption: qsTr("Size")
slider: false slider: false
backendValue: backendValues.font_pointSize backendValue: backendValues.font_pointSize
baseStateFlag: isBaseState; baseStateFlag: isBaseState;
...@@ -37,17 +37,17 @@ GroupBox { ...@@ -37,17 +37,17 @@ GroupBox {
QWidget { QWidget {
layout: HorizontalLayout { layout: HorizontalLayout {
Label { Label {
text: "Font Style" text: qsTr("Font Style")
} }
CheckBox { CheckBox {
text: "Bold"; text: qsTr("Bold")
backendValue: backendValues.font_bold backendValue: backendValues.font_bold
baseStateFlag: isBaseState; baseStateFlag: isBaseState;
checkable: true; checkable: true;
} }
CheckBox { CheckBox {
text: "Italic"; text: qsTr("Italic")
backendValue: backendValues.font_italic backendValue: backendValues.font_italic
baseStateFlag: isBaseState; baseStateFlag: isBaseState;
checkable: true; checkable: true;
...@@ -61,7 +61,7 @@ GroupBox { ...@@ -61,7 +61,7 @@ GroupBox {
layout: HorizontalLayout { layout: HorizontalLayout {
rightMargin: 12 rightMargin: 12
Label { Label {
text: "Style" text: qsTr("Style")
} }
ComboBox { ComboBox {
......
...@@ -5,7 +5,7 @@ GroupBox { ...@@ -5,7 +5,7 @@ GroupBox {
finished: finishedNotify finished: finishedNotify
id: geometry id: geometry
caption: "Geometry" caption: qsTr("Geometry")
layout: VerticalLayout { layout: VerticalLayout {
...@@ -13,7 +13,7 @@ GroupBox { ...@@ -13,7 +13,7 @@ GroupBox {
layout: HorizontalLayout { layout: HorizontalLayout {
Label { Label {
text: "Position" text: qsTr("Position")
} }
DoubleSpinBox { DoubleSpinBox {
...@@ -52,7 +52,7 @@ GroupBox { ...@@ -52,7 +52,7 @@ GroupBox {
layout: HorizontalLayout { layout: HorizontalLayout {
Label { Label {
text: "Size" text: qsTr("Size")
} }
DoubleSpinBox { DoubleSpinBox {
......
...@@ -23,7 +23,7 @@ QWidget { ...@@ -23,7 +23,7 @@ QWidget {
FileWidget { FileWidget {
enabled: isBaseState || backendValues.id.value != ""; enabled: isBaseState || backendValues.id.value != "";
text: "Source: "; text: qsTr("Source ")
fileName: backendValues.source.value; fileName: backendValues.source.value;
onFileNameChanged: { onFileNameChanged: {
backendValues.source.value = fileName; backendValues.source.value = fileName;
...@@ -33,7 +33,7 @@ QWidget { ...@@ -33,7 +33,7 @@ QWidget {
QWidget { QWidget {
layout: HorizontalLayout { layout: HorizontalLayout {
Label { Label {
text: "Fill Mode" text: qsTr("Fill Mode")
} }
ComboBox { ComboBox {
...@@ -51,11 +51,11 @@ QWidget { ...@@ -51,11 +51,11 @@ QWidget {
QWidget { QWidget {
layout: HorizontalLayout { layout: HorizontalLayout {
Label { Label {
text: "Aliasing" text: qsTr("Aliasing")
} }
CheckBox { CheckBox {
text: "Smooth"; text: qsTr("Smooth")
backendValue: backendValues.smooth backendValue: backendValues.smooth
baseStateFlag: isBaseState; baseStateFlag: isBaseState;
checkable: true; checkable: true;
......
...@@ -14,7 +14,7 @@ GroupBox { ...@@ -14,7 +14,7 @@ GroupBox {
layout: VerticalLayout { layout: VerticalLayout {
Label { Label {
text: "Anchors" text: qsTr("Anchors")
} }
QWidget { QWidget {
layout: HorizontalLayout { layout: HorizontalLayout {
...@@ -46,7 +46,7 @@ GroupBox { ...@@ -46,7 +46,7 @@ GroupBox {
} }
Label { Label {
text: "Target" text: qsTr("Target")
fixedWidth: targetLabelWidth fixedWidth: targetLabelWidth
} }
SiblingComboBox { SiblingComboBox {
...@@ -64,7 +64,7 @@ GroupBox { ...@@ -64,7 +64,7 @@ GroupBox {
IntEditor { IntEditor {
id:topbox id:topbox
slider: false slider: false
caption: "Margin" caption: qsTr("Margin")
backendValue: backendValues.anchors_topMargin backendValue: backendValues.anchors_topMargin
baseStateFlag: isBaseState; baseStateFlag: isBaseState;
maximumValue: 1000 maximumValue: 1000
...@@ -95,7 +95,7 @@ GroupBox { ...@@ -95,7 +95,7 @@ GroupBox {
} }
Label { Label {
text: "Target" text: qsTr("Target")
fixedWidth: targetLabelWidth fixedWidth: targetLabelWidth
} }
SiblingComboBox { SiblingComboBox {
...@@ -112,7 +112,7 @@ GroupBox { ...@@ -112,7 +112,7 @@ GroupBox {
leftMargin: leftMarginMargin leftMargin: leftMarginMargin
IntEditor { IntEditor {
slider: false slider: false
caption: "Margin" caption: qsTr("Margin")
backendValue: backendValues.anchors_bottomMargin backendValue: backendValues.anchors_bottomMargin
baseStateFlag: isBaseState; baseStateFlag: isBaseState;
maximumValue: 1000 maximumValue: 1000
...@@ -143,7 +143,7 @@ GroupBox { ...@@ -143,7 +143,7 @@ GroupBox {
} }
Label { Label {
text: "Target" text: qsTr("Target")
fixedWidth: targetLabelWidth fixedWidth: targetLabelWidth
} }
SiblingComboBox { SiblingComboBox {
...@@ -159,7 +159,7 @@ GroupBox { ...@@ -159,7 +159,7 @@ GroupBox {
leftMargin: leftMarginMargin leftMargin: leftMarginMargin
IntEditor { IntEditor {
slider: false slider: false
caption: "Margin" caption: qsTr("Margin")
backendValue: backendValues.anchors_leftMargin backendValue: backendValues.anchors_leftMargin
baseStateFlag: isBaseState; baseStateFlag: isBaseState;
maximumValue: 1000 maximumValue: 1000
...@@ -190,7 +190,7 @@ GroupBox { ...@@ -190,7 +190,7 @@ GroupBox {
} }
Label { Label {
text: "Target" text: qsTr("Target")
fixedWidth: targetLabelWidth fixedWidth: targetLabelWidth
} }
SiblingComboBox { SiblingComboBox {
...@@ -206,7 +206,7 @@ GroupBox { ...@@ -206,7 +206,7 @@ GroupBox {
leftMargin: leftMarginMargin leftMargin: leftMarginMargin
IntEditor { IntEditor {
slider: false slider: false
caption: "Margin" caption: qsTr("Margin")
backendValue: backendValues.anchors_rightMargin backendValue: backendValues.anchors_rightMargin
baseStateFlag: isBaseState; baseStateFlag: isBaseState;
maximumValue: 1000 maximumValue: 1000
...@@ -237,7 +237,7 @@ GroupBox { ...@@ -237,7 +237,7 @@ GroupBox {
} }
Label { Label {
text: "Target" text: qsTr("Target")
fixedWidth: targetLabelWidth fixedWidth: targetLabelWidth
} }
SiblingComboBox { SiblingComboBox {
...@@ -253,7 +253,7 @@ GroupBox { ...@@ -253,7 +253,7 @@ GroupBox {
leftMargin: leftMarginMargin leftMargin: leftMarginMargin
IntEditor { IntEditor {
slider: false slider: false
caption: "Margin" caption: qsTr("Margin")
baseStateFlag: isBaseState; baseStateFlag: isBaseState;
backendValue: backendValues.anchors_horizontalCenterOffset backendValue: backendValues.anchors_horizontalCenterOffset
maximumValue: 1000 maximumValue: 1000
...@@ -284,7 +284,7 @@ GroupBox { ...@@ -284,7 +284,7 @@ GroupBox {
} }
Label { Label {
text: "Target" text: qsTr("Target")
fixedWidth: targetLabelWidth fixedWidth: targetLabelWidth
} }
SiblingComboBox { SiblingComboBox {
...@@ -300,7 +300,7 @@ GroupBox { ...@@ -300,7 +300,7 @@ GroupBox {
leftMargin: leftMarginMargin leftMargin: leftMarginMargin
IntEditor { IntEditor {
slider: false slider: false
caption: "Margin" caption: qsTr("Margin")
backendValue: backendValues.anchors_verticalCenterOffset backendValue: backendValues.anchors_verticalCenterOffset
baseStateFlag: isBaseState; baseStateFlag: isBaseState;
maximumValue: 1000 maximumValue: 1000
......
...@@ -4,20 +4,18 @@ import Bauhaus 1.0 ...@@ -4,20 +4,18 @@ import Bauhaus 1.0
GroupBox { GroupBox {
id: rectangleColorGroupBox id: rectangleColorGroupBox
caption: "Colors" caption: qsTr("Colors")
layout: VerticalLayout { layout: VerticalLayout {
ColorGroupBox { ColorGroupBox {
caption: "Rectangle" caption: qsTr("Rectangle")
finished: finishedNotify
finished: finishedNotify
backendColor: backendValues.color backendColor: backendValues.color
} }
ColorGroupBox { ColorGroupBox {
caption: "Border" caption: qsTr("Border")
finished: finishedNotify finished: finishedNotify
backendColor: backendValues.border_color backendColor: backendValues.border_color
......
...@@ -24,7 +24,7 @@ QWidget { ...@@ -24,7 +24,7 @@ QWidget {
IntEditor { IntEditor {
backendValue: backendValues.radius backendValue: backendValues.radius
caption: "Radius" caption: qsTr("Radius")
baseStateFlag: isBaseState; baseStateFlag: isBaseState;
step: 1; step: 1;
minimumValue: 0; minimumValue: 0;
...@@ -36,7 +36,7 @@ QWidget { ...@@ -36,7 +36,7 @@ QWidget {
id: borderWidth; id: borderWidth;
backendValue: backendValues.border_width === undefined ? 0 : backendValues.border_width backendValue: backendValues.border_width === undefined ? 0 : backendValues.border_width
caption: "Border" caption: qsTr("Border")
baseStateFlag: isBaseState; baseStateFlag: isBaseState;
step: 1; step: 1;
......
...@@ -3,40 +3,40 @@ import Bauhaus 1.0 ...@@ -3,40 +3,40 @@ import Bauhaus 1.0
GroupBox { GroupBox {
id: standardTextColorGroupBox id: standardTextColorGroupBox
property bool showStyleColor: false
property bool showSelectionColor: false
property bool showSelectedTextColor: false
caption: "Color" property bool showStyleColor: false
property bool showSelectionColor: false
property bool showSelectedTextColor: false
caption: qsTr("Color")
layout: VerticalLayout { layout: VerticalLayout {
ColorGroupBox { ColorGroupBox {
caption: "Text" caption: qsTr("Text")
finished: finishedNotify finished: finishedNotify
backendColor: backendValues.color backendColor: backendValues.color
} }
ColorGroupBox { ColorGroupBox {
caption: "Style" caption: qsTr("Style")
visible: showStyleColor visible: showStyleColor
finished: finishedNotify finished: finishedNotify
backendColor: backendValues.styleColor backendColor: backendValues.styleColor
} }
ColorGroupBox { ColorGroupBox {
caption: "Selection" caption: qsTr("Selection")
visible: showSelectionColor visible: showSelectionColor
finished: finishedNotify finished: finishedNotify
backendColor: backendValues.selectionColor backendColor: backendValues.selectionColor
} }
ColorGroupBox { ColorGroupBox {
visible: showSelectedTextColor visible: showSelectedTextColor
caption: "Selected" caption: qsTr("Selected")
finished: finishedNotify finished: finishedNotify
......
...@@ -14,7 +14,7 @@ GroupBox { ...@@ -14,7 +14,7 @@ GroupBox {
layout: HorizontalLayout { layout: HorizontalLayout {
Label { Label {
text: "Text" text: qsTr("Text")
} }
LineEdit { LineEdit {
...@@ -31,7 +31,7 @@ GroupBox { ...@@ -31,7 +31,7 @@ GroupBox {
} }
CheckBox { CheckBox {
baseStateFlag: isBaseState; baseStateFlag: isBaseState;
text: "Is Wrapping"; text: qsTr("Is Wrapping")
checkable: true; checkable: true;
backendValue: backendValues.wrap; backendValue: backendValues.wrap;
} }
...@@ -42,7 +42,7 @@ GroupBox { ...@@ -42,7 +42,7 @@ GroupBox {
layout: HorizontalLayout { layout: HorizontalLayout {
Label { Label {
text: "Alignment" text: qsTr("Alignment")
} }
AlignmentHorizontalButtons {} AlignmentHorizontalButtons {}
AlignmentVerticalButtons { visible: showVerticalAlignment } AlignmentVerticalButtons { visible: showVerticalAlignment }
......
...@@ -22,7 +22,7 @@ QWidget { ...@@ -22,7 +22,7 @@ QWidget {
} }
GroupBox { GroupBox {
caption: "Text Edit" caption: qsTr("Text Edit")
finished: finishedNotify; finished: finishedNotify;
layout: VerticalLayout { layout: VerticalLayout {
...@@ -30,7 +30,7 @@ QWidget { ...@@ -30,7 +30,7 @@ QWidget {
layout: HorizontalLayout { layout: HorizontalLayout {
rightMargin: 12 rightMargin: 12
Label { Label {
text: "Format" text: qsTr("Format")
} }
ComboBox { ComboBox {
baseStateFlag: isBaseState baseStateFlag: isBaseState
......
...@@ -4,16 +4,16 @@ import Bauhaus 1.0 ...@@ -4,16 +4,16 @@ import Bauhaus 1.0
GroupBox { GroupBox {
id: textInputGroupBox id: textInputGroupBox
caption: "Text Input"; caption: qsTr("Text Input")