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

QmlDesigner.propertyEditor: add qsTr() for translation

parent 2e582c3f
......@@ -48,7 +48,7 @@ QWidget {
ExpressionEdit {
id: textEdit;
styleSheet: "QTextEdit {border-radius: 0px;}"
documentTitle: "Expression"
documentTitle: qsTr("Expression")
width: expressionEdit.width
height: expressionEdit.height
......
......@@ -61,14 +61,14 @@ QToolButton {
actions: [
QAction {
text: "Reset";
text: qsTr("Reset")
onTriggered: {
backendValue.resetValue();
}
},
QAction {
text: "Set Expression";
text: qsTr("Set Expression");
onTriggered: {
expressionEdit.globalY = extendedFunctionButton.globalY;
expressionEdit.backendValue = extendedFunctionButton.backendValue
......
......@@ -12,7 +12,7 @@ GroupBox {
layout: HorizontalLayout {
rightMargin: 12
Label {
text: "Font"
text: qsTr("Font")
}
FontComboBox {
id: fontSelector
......@@ -28,7 +28,7 @@ GroupBox {
IntEditor {
maximumWidth: 200
caption: "Size"
caption: qsTr("Size")
slider: false
backendValue: backendValues.font_pointSize
baseStateFlag: isBaseState;
......@@ -37,17 +37,17 @@ GroupBox {
QWidget {
layout: HorizontalLayout {
Label {
text: "Font Style"
text: qsTr("Font Style")
}
CheckBox {
text: "Bold";
text: qsTr("Bold")
backendValue: backendValues.font_bold
baseStateFlag: isBaseState;
checkable: true;
}
CheckBox {
text: "Italic";
text: qsTr("Italic")
backendValue: backendValues.font_italic
baseStateFlag: isBaseState;
checkable: true;
......@@ -61,7 +61,7 @@ GroupBox {
layout: HorizontalLayout {
rightMargin: 12
Label {
text: "Style"
text: qsTr("Style")
}
ComboBox {
......
......@@ -5,7 +5,7 @@ GroupBox {
finished: finishedNotify
id: geometry
caption: "Geometry"
caption: qsTr("Geometry")
layout: VerticalLayout {
......@@ -13,7 +13,7 @@ GroupBox {
layout: HorizontalLayout {
Label {
text: "Position"
text: qsTr("Position")
}
DoubleSpinBox {
......@@ -52,7 +52,7 @@ GroupBox {
layout: HorizontalLayout {
Label {
text: "Size"
text: qsTr("Size")
}
DoubleSpinBox {
......
......@@ -23,7 +23,7 @@ QWidget {
FileWidget {
enabled: isBaseState || backendValues.id.value != "";
text: "Source: ";
text: qsTr("Source ")
fileName: backendValues.source.value;
onFileNameChanged: {
backendValues.source.value = fileName;
......@@ -33,7 +33,7 @@ QWidget {
QWidget {
layout: HorizontalLayout {
Label {
text: "Fill Mode"
text: qsTr("Fill Mode")
}
ComboBox {
......@@ -51,11 +51,11 @@ QWidget {
QWidget {
layout: HorizontalLayout {
Label {
text: "Aliasing"
text: qsTr("Aliasing")
}
CheckBox {
text: "Smooth";
text: qsTr("Smooth")
backendValue: backendValues.smooth
baseStateFlag: isBaseState;
checkable: true;
......
......@@ -14,7 +14,7 @@ GroupBox {
layout: VerticalLayout {
Label {
text: "Anchors"
text: qsTr("Anchors")
}
QWidget {
layout: HorizontalLayout {
......@@ -46,7 +46,7 @@ GroupBox {
}
Label {
text: "Target"
text: qsTr("Target")
fixedWidth: targetLabelWidth
}
SiblingComboBox {
......@@ -64,7 +64,7 @@ GroupBox {
IntEditor {
id:topbox
slider: false
caption: "Margin"
caption: qsTr("Margin")
backendValue: backendValues.anchors_topMargin
baseStateFlag: isBaseState;
maximumValue: 1000
......@@ -95,7 +95,7 @@ GroupBox {
}
Label {
text: "Target"
text: qsTr("Target")
fixedWidth: targetLabelWidth
}
SiblingComboBox {
......@@ -112,7 +112,7 @@ GroupBox {
leftMargin: leftMarginMargin
IntEditor {
slider: false
caption: "Margin"
caption: qsTr("Margin")
backendValue: backendValues.anchors_bottomMargin
baseStateFlag: isBaseState;
maximumValue: 1000
......@@ -143,7 +143,7 @@ GroupBox {
}
Label {
text: "Target"
text: qsTr("Target")
fixedWidth: targetLabelWidth
}
SiblingComboBox {
......@@ -159,7 +159,7 @@ GroupBox {
leftMargin: leftMarginMargin
IntEditor {
slider: false
caption: "Margin"
caption: qsTr("Margin")
backendValue: backendValues.anchors_leftMargin
baseStateFlag: isBaseState;
maximumValue: 1000
......@@ -190,7 +190,7 @@ GroupBox {
}
Label {
text: "Target"
text: qsTr("Target")
fixedWidth: targetLabelWidth
}
SiblingComboBox {
......@@ -206,7 +206,7 @@ GroupBox {
leftMargin: leftMarginMargin
IntEditor {
slider: false
caption: "Margin"
caption: qsTr("Margin")
backendValue: backendValues.anchors_rightMargin
baseStateFlag: isBaseState;
maximumValue: 1000
......@@ -237,7 +237,7 @@ GroupBox {
}
Label {
text: "Target"
text: qsTr("Target")
fixedWidth: targetLabelWidth
}
SiblingComboBox {
......@@ -253,7 +253,7 @@ GroupBox {
leftMargin: leftMarginMargin
IntEditor {
slider: false
caption: "Margin"
caption: qsTr("Margin")
baseStateFlag: isBaseState;
backendValue: backendValues.anchors_horizontalCenterOffset
maximumValue: 1000
......@@ -284,7 +284,7 @@ GroupBox {
}
Label {
text: "Target"
text: qsTr("Target")
fixedWidth: targetLabelWidth
}
SiblingComboBox {
......@@ -300,7 +300,7 @@ GroupBox {
leftMargin: leftMarginMargin
IntEditor {
slider: false
caption: "Margin"
caption: qsTr("Margin")
backendValue: backendValues.anchors_verticalCenterOffset
baseStateFlag: isBaseState;
maximumValue: 1000
......
......@@ -4,20 +4,18 @@ import Bauhaus 1.0
GroupBox {
id: rectangleColorGroupBox
caption: "Colors"
caption: qsTr("Colors")
layout: VerticalLayout {
ColorGroupBox {
caption: "Rectangle"
finished: finishedNotify
caption: qsTr("Rectangle")
finished: finishedNotify
backendColor: backendValues.color
}
ColorGroupBox {
caption: "Border"
caption: qsTr("Border")
finished: finishedNotify
backendColor: backendValues.border_color
......
......@@ -24,7 +24,7 @@ QWidget {
IntEditor {
backendValue: backendValues.radius
caption: "Radius"
caption: qsTr("Radius")
baseStateFlag: isBaseState;
step: 1;
minimumValue: 0;
......@@ -36,7 +36,7 @@ QWidget {
id: borderWidth;
backendValue: backendValues.border_width === undefined ? 0 : backendValues.border_width
caption: "Border"
caption: qsTr("Border")
baseStateFlag: isBaseState;
step: 1;
......
......@@ -3,40 +3,40 @@ import Bauhaus 1.0
GroupBox {
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 {
ColorGroupBox {
caption: "Text"
caption: qsTr("Text")
finished: finishedNotify
backendColor: backendValues.color
}
ColorGroupBox {
caption: "Style"
visible: showStyleColor
caption: qsTr("Style")
visible: showStyleColor
finished: finishedNotify
backendColor: backendValues.styleColor
}
ColorGroupBox {
caption: "Selection"
visible: showSelectionColor
ColorGroupBox {
caption: qsTr("Selection")
visible: showSelectionColor
finished: finishedNotify
backendColor: backendValues.selectionColor
}
ColorGroupBox {
visible: showSelectedTextColor
caption: "Selected"
visible: showSelectedTextColor
caption: qsTr("Selected")
finished: finishedNotify
......
......@@ -14,7 +14,7 @@ GroupBox {
layout: HorizontalLayout {
Label {
text: "Text"
text: qsTr("Text")
}
LineEdit {
......@@ -31,7 +31,7 @@ GroupBox {
}
CheckBox {
baseStateFlag: isBaseState;
text: "Is Wrapping";
text: qsTr("Is Wrapping")
checkable: true;
backendValue: backendValues.wrap;
}
......@@ -42,7 +42,7 @@ GroupBox {
layout: HorizontalLayout {
Label {
text: "Alignment"
text: qsTr("Alignment")
}
AlignmentHorizontalButtons {}
AlignmentVerticalButtons { visible: showVerticalAlignment }
......
......@@ -22,7 +22,7 @@ QWidget {
}
GroupBox {
caption: "Text Edit"
caption: qsTr("Text Edit")
finished: finishedNotify;
layout: VerticalLayout {
......@@ -30,7 +30,7 @@ QWidget {
layout: HorizontalLayout {
rightMargin: 12
Label {
text: "Format"
text: qsTr("Format")
}
ComboBox {
baseStateFlag: isBaseState
......
......@@ -4,16 +4,16 @@ import Bauhaus 1.0
GroupBox {
id: textInputGroupBox
caption: "Text Input";
caption: qsTr("Text Input")
layout: VerticalLayout {
QWidget {
layout: HorizontalLayout {
Label {text: "Flags"}
Label {text: qsTr("Flags") }
CheckBox {
text: "Read Only";
text: qsTr("Read Only")
baseStateFlag: isBaseState;
checkable: true;
backendValue: backendValues.readOnly;
......@@ -31,7 +31,7 @@ GroupBox {
CheckBox {
text: "Cursor Visible";
text: qsTr("Cursor Visible")
baseStateFlag: isBaseState;
checkable: true;
backendValue: backendValues.cursorVisible;
......@@ -45,7 +45,7 @@ GroupBox {
layout: HorizontalLayout {
Label {text: ""}
CheckBox {
text: "Focus On Press";
text: qsTr("Focus On Press")
baseStateFlag: isBaseState;
checkable: true;
backendValue: backendValues. focusOnPress;
......
......@@ -4,14 +4,14 @@ import Bauhaus 1.0
GroupBox {
id: type;
finished: finishedNotify;
caption: "Type";
caption: qsTr("Type")
layout: VerticalLayout {
spacing: 6
QWidget {
layout: HorizontalLayout {
Label {
text: "type";
text: qsTr("Type")
windowTextColor: isBaseState ? "#000000" : "#FF0000";
}
......@@ -28,7 +28,7 @@ GroupBox {
layout: HorizontalLayout {
Label {
text: "Id";
text: qsTr("Id");
}
QLineEdit {
......
......@@ -11,19 +11,19 @@ GroupBox {
QWidget {
layout: HorizontalLayout {
Label {
text: "Visibility"
Label {
text: qsTr("Visibility")
}
CheckBox {
id: visibleCheckBox;
text: "Is visible";
text: qsTr("Is visible")
backendValue: backendValues.visible;
baseStateFlag: isBaseState;
checkable: true;
}
CheckBox {
id: clipCheckBox;
text: "Clip Content";
text: qsTr("Clip Content")
backendValue: backendValues.clip;
baseStateFlag: isBaseState;
checkable: true;
......@@ -34,7 +34,7 @@ GroupBox {
layout: HorizontalLayout {
Label {
text: "Opacity"
text: qsTr("Opacity")
}
DoubleSpinBox {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment