Commit 51d5e232 authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner.QtQuick: Text(Inpt/Edit) now use qsTr

Any text item from the library now uses qsTr

Change-Id: I6ddb4f873227a06f77479e13cbbf4a51e8c26575
Reviewed-on: http://codereview.qt.nokia.com/788Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@nokia.com>
parent 386974c9
......@@ -34,5 +34,8 @@
<file>source/listview.qml</file>
<file>source/gridview.qml</file>
<file>source/pathview.qml</file>
<file>source/text.qml</file>
<file>source/textedit.qml</file>
<file>source/textinput.qml</file>
</qresource>
</RCC>
......@@ -13,25 +13,18 @@
</itemlibraryentry>
</node>
<node name="QtQuick.Text" icon=":/qtquickplugin/images/text-icon16.png">
<itemlibraryentry name="Text" category="Qt Quick - Basic" libraryIcon=":/qtquickplugin/images/text-icon.png" version="1.0">
<property name="text" type="QString" value="text"/>
<property name="font.pixelSize" type="int" value="12"/>
<itemlibraryentry name="Text" category="Qt Quick - Basic" libraryIcon=":/qtquickplugin/images/text-icon.png" version="1.0">
<qml source=":/qtquickplugin/source/text.qml"/>
</itemlibraryentry>
</node>
<node name="QtQuick.TextEdit" icon=":/qtquickplugin/images/text-edit-icon16.png">
<itemlibraryentry name="Text Edit" category="Qt Quick - Basic" libraryIcon=":/qtquickplugin/images/text-edit-icon.png" version="1.0">
<property name="width" type="int" value="80"/>
<property name="height" type="int" value="20"/>
<property name="text" type="QString" value="textEdit"/>
<property name="font.pixelSize" type="int" value="12"/>
<itemlibraryentry name="Text Edit" category="Qt Quick - Basic" libraryIcon=":/qtquickplugin/images/text-edit-icon.png" version="1.0">
<qml source=":/qtquickplugin/source/textedit.qml"/>
</itemlibraryentry>
</node>
<node name="QtQuick.TextInput" icon=":/qtquickplugin/images/text-input-icon16.png">
<itemlibraryentry name="Text Input" category="Qt Quick - Basic" libraryIcon=":/qtquickplugin/images/text-input-icon.png" version="1.0">
<property name="width" type="int" value="80"/>
<property name="height" type="int" value="20"/>
<property name="text" type="QString" value="textInput"/>
<property name="font.pixelSize" type="int" value="12"/>
<qml source=":/qtquickplugin/source/textinput.qml"/>
</itemlibraryentry>
</node>
<node name="QtQuick.MouseArea" icon=":/qtquickplugin/images/mouse-area-icon16.png">
......
import QtQuick 1.0
Text {
text: qsTr("text")
font.pixelSize: 12
}
import QtQuick 1.0
Text {
width: 80
height: 20
text: qsTr("text edit")
font.pixelSize: 12
}
import QtQuick 1.0
Text {
width: 80
height: 20
text: qsTr("text")
font.pixelSize: 12
}
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