diff options
author | Thomas Hartmann <Thomas.Hartmann@digia.com> | 2012-10-09 11:03:25 +0200 |
---|---|---|
committer | Thomas Hartmann <Thomas.Hartmann@digia.com> | 2012-10-09 14:39:54 +0200 |
commit | 555265c0466e66a97031775a49cf3316520c563c (patch) | |
tree | a89fd7b1867dea4fd3dfda190b50a6fdc15ccd01 /src/plugins/qmldesigner/qtquickplugin | |
parent | 13d4972e67cd2bcdbf7f223407e78f2e74ae835b (diff) |
QmlDesiger.ItemLibrary: updating item library for QtQuick 2.0
The 2.0 items have different entries, since they might require different
values. Also they have different source files.
Change-Id: Ie9ca142654717aae663c9eb6a51e2e53bf63ab34
Reviewed-by: Marco Bubke <marco.bubke@digia.com>
Diffstat (limited to 'src/plugins/qmldesigner/qtquickplugin')
8 files changed, 439 insertions, 6 deletions
diff --git a/src/plugins/qmldesigner/qtquickplugin/qtquickplugin.qrc b/src/plugins/qmldesigner/qtquickplugin/qtquickplugin.qrc index 3293af89627..b2dcfce06ae 100644 --- a/src/plugins/qmldesigner/qtquickplugin/qtquickplugin.qrc +++ b/src/plugins/qmldesigner/qtquickplugin/qtquickplugin.qrc @@ -32,10 +32,16 @@ <file>images/text-input-icon16.png</file> <file>images/webview-icon16.png</file> <file>source/listview.qml</file> + <file>source/listviewv2.qml</file> <file>source/gridview.qml</file> + <file>source/gridviewv2.qml</file> <file>source/pathview.qml</file> + <file>source/pathviewv2.qml</file> <file>source/text.qml</file> + <file>source/textv2.qml</file> <file>source/textedit.qml</file> + <file>source/texteditv2.qml</file> <file>source/textinput.qml</file> + <file>source/textinputv2.qml</file> </qresource> </RCC> diff --git a/src/plugins/qmldesigner/qtquickplugin/quick.metainfo b/src/plugins/qmldesigner/qtquickplugin/quick.metainfo index be74404a753..cd48606ce44 100644 --- a/src/plugins/qmldesigner/qtquickplugin/quick.metainfo +++ b/src/plugins/qmldesigner/qtquickplugin/quick.metainfo @@ -12,14 +12,31 @@ <property name="height" type="int" value="200"/> </itemlibraryentry> </node> + <node name="QtQuick.Rectangle" icon=":/qtquickplugin/images/rect-icon16.png"> + <itemlibraryentry name="Rectangle" category="Qt Quick - Basic" libraryIcon=":/qtquickplugin/images/rect-icon.png" version="2.0"> + <property name="color" type="QColor" value="#ffffff"/> + <property name="width" type="int" value="200"/> + <property name="height" type="int" value="200"/> + </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"> + <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.Text" icon=":/qtquickplugin/images/text-icon16.png"> + <itemlibraryentry name="Text" category="Qt Quick - Basic" libraryIcon=":/qtquickplugin/images/text-icon.png" version="2.0"> + <qml source=":/qtquickplugin/source/textv2.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"> - <qml source=":/qtquickplugin/source/textedit.qml"/> + <itemlibraryentry name="Text Edit" category="Qt Quick - Basic" libraryIcon=":/qtquickplugin/images/text-edit-icon.png" version="1.0"> + <qml source=":/qtquickplugin/source/texteditv2.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="2.0"> + <qml source=":/qtquickplugin/source/texteditv2.qml"/> </itemlibraryentry> </node> <node name="QtQuick.TextInput" icon=":/qtquickplugin/images/text-input-icon16.png"> @@ -27,12 +44,23 @@ <qml source=":/qtquickplugin/source/textinput.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="2.0"> + <qml source=":/qtquickplugin/source/textinputv2.qml"/> + </itemlibraryentry> + </node> <node name="QtQuick.MouseArea" icon=":/qtquickplugin/images/mouse-area-icon16.png"> <itemlibraryentry name="Mouse Area" category="Qt Quick - Basic" libraryIcon=":/qtquickplugin/images/mouse-area-icon.png" version="1.0"> <property name="width" type="int" value="100"/> <property name="height" type="int" value="100"/> </itemlibraryentry> </node> + <node name="QtQuick.MouseArea" icon=":/qtquickplugin/images/mouse-area-icon16.png"> + <itemlibraryentry name="Mouse Area" category="Qt Quick - Basic" libraryIcon=":/qtquickplugin/images/mouse-area-icon.png" version="2.0"> + <property name="width" type="int" value="100"/> + <property name="height" type="int" value="100"/> + </itemlibraryentry> + </node> <node name="QtQuick.Image" icon=":/qtquickplugin/images/image-icon16.png"> <itemlibraryentry name="Image" category="Qt Quick - Basic" libraryIcon=":/qtquickplugin/images/image-icon.png" version="1.0"> <property name="width" type="int" value="100"/> @@ -40,6 +68,13 @@ <property name="source" type="QUrl" value="qrc:/qtquickplugin/images/template_image.png"/> </itemlibraryentry> </node> + <node name="QtQuick.Image" icon=":/qtquickplugin/images/image-icon16.png"> + <itemlibraryentry name="Image" category="Qt Quick - Basic" libraryIcon=":/qtquickplugin/images/image-icon.png" version="2.0"> + <property name="width" type="int" value="100"/> + <property name="height" type="int" value="100"/> + <property name="source" type="QUrl" value="qrc:/qtquickplugin/images/template_image.png"/> + </itemlibraryentry> + </node> <node name="QtQuick.BorderImage" icon=":/qtquickplugin/images/border-image-icon16.png"> <itemlibraryentry name="Border Image" category="Qt Quick - Basic" libraryIcon=":/qtquickplugin/images/border-image-icon.png" version="1.0"> <property name="width" type="int" value="100"/> @@ -47,6 +82,13 @@ <property name="source" type="QUrl" value="qrc:/qtquickplugin/images/template_image.png"/> </itemlibraryentry> </node> + <node name="QtQuick.BorderImage" icon=":/qtquickplugin/images/border-image-icon16.png"> + <itemlibraryentry name="Border Image" category="Qt Quick - Basic" libraryIcon=":/qtquickplugin/images/border-image-icon.png" version="2.0"> + <property name="width" type="int" value="100"/> + <property name="height" type="int" value="100"/> + <property name="source" type="QUrl" value="qrc:/qtquickplugin/images/template_image.png"/> + </itemlibraryentry> + </node> <node name="QtQuick.Flickable" icon=":/qtquickplugin/images/flickable-icon16.png"> <itemlibraryentry name="Flickable" category="Qt Quick - Basic" libraryIcon=":/qtquickplugin/images/flickable-icon.png" version="1.0"> <property name="width" type="int" value="300"/> @@ -54,7 +96,7 @@ </itemlibraryentry> </node> <node name="QtQuick.Flipable" icon=":/qtquickplugin/images/flipable-icon16.png"> - <itemlibraryentry name="Flipable" category="Qt Quick - Basic" libraryIcon=":/qtquickplugin/images/flipable-icon.png" version="1.0"> + <itemlibraryentry name="Flipable" category="Qt Quick - Basic" libraryIcon=":/qtquickplugin/images/flipable-icon.png" version="2.0"> <property name="width" type="int" value="300"/> <property name="height" type="int" value="300"/> </itemlibraryentry> @@ -65,24 +107,43 @@ </itemlibraryentry> </node> + <node name="QtQuick.GridView" icon=":/qtquickplugin/images/gridview-icon16.png"> + <itemlibraryentry name="Grid View" category="Qt Quick - Views" libraryIcon=":/qtquickplugin/images/gridview-icon.png" version="2.0"> + <qml source=":/qtquickplugin/source/gridviewv2.qml"/> + </itemlibraryentry> + </node> <node name="QtQuick.ListView" icon=":/qtquickplugin/images/listview-icon16.png"> <itemlibraryentry name="List View" category="Qt Quick - Views" libraryIcon=":/qtquickplugin/images/listview-icon.png" version="1.0"> <qml source=":/qtquickplugin/source/listview.qml"/> </itemlibraryentry> </node> - + <node name="QtQuick.ListView" icon=":/qtquickplugin/images/listview-icon16.png"> + <itemlibraryentry name="List View" category="Qt Quick - Views" libraryIcon=":/qtquickplugin/images/listview-icon.png" version="2.0"> + <qml source=":/qtquickplugin/source/listviewv2.qml"/> + </itemlibraryentry> + </node> <node name="QtQuick.PathView" icon=":/qtquickplugin/images/pathview-icon16.png"> <itemlibraryentry name="Path View" category="Qt Quick - Views" libraryIcon=":/qtquickplugin/images/pathview-icon.png" version="1.0"> <qml source=":/qtquickplugin/source/pathview.qml"/> </itemlibraryentry> </node> - + <node name="QtQuick.PathView" icon=":/qtquickplugin/images/pathview-icon16.png"> + <itemlibraryentry name="Path View" category="Qt Quick - Views" libraryIcon=":/qtquickplugin/images/pathview-icon.png" version="2.0"> + <qml source=":/qtquickplugin/source/pathviewv2.qml"/> + </itemlibraryentry> + </node> <node name="QtQuick.FocusScope" icon=":/qtquickplugin/images/focusscope-icon16.png"> <itemlibraryentry name="Focus Scope" category="Qt Quick - Basic" libraryIcon=":/qtquickplugin/images/focusscope-icon.png" version="1.0"> <property name="width" type="int" value="100"/> <property name="height" type="int" value="100"/> </itemlibraryentry> </node> + <node name="QtQuick.FocusScope" icon=":/qtquickplugin/images/focusscope-icon16.png"> + <itemlibraryentry name="Focus Scope" category="Qt Quick - Basic" libraryIcon=":/qtquickplugin/images/focusscope-icon.png" version="2.0"> + <property name="width" type="int" value="100"/> + <property name="height" type="int" value="100"/> + </itemlibraryentry> + </node> <node name="QtWebKit.WebView" icon=":/qtquickplugin/images/webview-icon16.png"> <itemlibraryentry name="Web View" category="Qt Quick - Basic" libraryIcon=":/qtquickplugin/images/webview-icon.png" version="1.0" requiredImport="QtWebKit" forceImport="true"> <property name="width" type="int" value="300"/> @@ -96,22 +157,46 @@ <property name="height" type="int" value="200"/> </itemlibraryentry> </node> + <node name="QtQuick.Row" icon=":/qtquickplugin/images/item-icon16.png"> + <itemlibraryentry name="Row" category="Qt Quick - Positioner" libraryIcon=":/qtquickplugin/images/item-icon.png" version="2.0"> + <property name="width" type="int" value="400"/> + <property name="height" type="int" value="200"/> + </itemlibraryentry> + </node> <node name="QtQuick.Column" icon=":/qtquickplugin/images/item-icon16.png"> <itemlibraryentry name="Column" category="Qt Quick - Positioner" libraryIcon=":/qtquickplugin/images/item-icon.png" version="1.0"> <property name="width" type="int" value="200"/> <property name="height" type="int" value="400"/> </itemlibraryentry> </node> + <node name="QtQuick.Column" icon=":/qtquickplugin/images/item-icon16.png"> + <itemlibraryentry name="Column" category="Qt Quick - Positioner" libraryIcon=":/qtquickplugin/images/item-icon.png" version="2.0"> + <property name="width" type="int" value="200"/> + <property name="height" type="int" value="400"/> + </itemlibraryentry> + </node> <node name="QtQuick.Grid" icon=":/qtquickplugin/images/item-icon16.png"> <itemlibraryentry name="Grid" category="Qt Quick - Positioner" libraryIcon=":/qtquickplugin/images/item-icon.png" version="1.0"> <property name="width" type="int" value="400"/> <property name="height" type="int" value="400"/> </itemlibraryentry> </node> + <node name="QtQuick.Grid" icon=":/qtquickplugin/images/item-icon16.png"> + <itemlibraryentry name="Grid" category="Qt Quick - Positioner" libraryIcon=":/qtquickplugin/images/item-icon.png" version="2.0"> + <property name="width" type="int" value="400"/> + <property name="height" type="int" value="400"/> + </itemlibraryentry> + </node> <node name="QtQuick.Flow" icon=":/qtquickplugin/images/item-icon16.png"> <itemlibraryentry name="Flow" category="Qt Quick - Positioner" libraryIcon=":/qtquickplugin/images/item-icon.png" version="1.0"> <property name="width" type="int" value="400"/> <property name="height" type="int" value="400"/> </itemlibraryentry> </node> + <node name="QtQuick.Flow" icon=":/qtquickplugin/images/item-icon16.png"> + <itemlibraryentry name="Flow" category="Qt Quick - Positioner" libraryIcon=":/qtquickplugin/images/item-icon.png" version="2.0"> + <property name="width" type="int" value="400"/> + <property name="height" type="int" value="400"/> + </itemlibraryentry> + </node> </metainfo> diff --git a/src/plugins/qmldesigner/qtquickplugin/source/gridviewv2.qml b/src/plugins/qmldesigner/qtquickplugin/source/gridviewv2.qml new file mode 100644 index 00000000000..9532a65daf0 --- /dev/null +++ b/src/plugins/qmldesigner/qtquickplugin/source/gridviewv2.qml @@ -0,0 +1,87 @@ +/**************************************************************************** +** +** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies). +** Contact: http://www.qt-project.org/legal +** +** This file is part of Qt Creator. +** +** Commercial License Usage +** Licensees holding valid commercial Qt licenses may use this file in +** accordance with the commercial license agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and Digia. For licensing terms and +** conditions see http://qt.digia.com/licensing. For further information +** use the contact form at http://qt.digia.com/contact-us. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Digia gives you certain additional +** rights. These rights are described in the Digia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +****************************************************************************/ + +import QtQuick 2.0 + +GridView { + width: 140 + height: 140 + cellWidth: 70 + cellHeight: 70 + + model: ListModel { + + ListElement { + name: "Grey" + colorCode: "grey" + + } + + ListElement { + name: "Red" + colorCode: "red" + + } + + ListElement { + name: "Blue" + colorCode: "blue" + + } + + ListElement { + name: "Green" + colorCode: "green" + + } + } + + delegate: Item { + height: 50 + x: 5 + + Column { + spacing: 5 + Rectangle { + width: 40 + height: 40 + color: colorCode + anchors.horizontalCenter: parent.horizontalCenter + } + + Text { + x: 5 + text: name + anchors.horizontalCenter: parent.horizontalCenter + font.bold: true + } + + } + } +} diff --git a/src/plugins/qmldesigner/qtquickplugin/source/listviewv2.qml b/src/plugins/qmldesigner/qtquickplugin/source/listviewv2.qml new file mode 100644 index 00000000000..70338dfde17 --- /dev/null +++ b/src/plugins/qmldesigner/qtquickplugin/source/listviewv2.qml @@ -0,0 +1,68 @@ +/**************************************************************************** +** +** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies). +** Contact: http://www.qt-project.org/legal +** +** This file is part of Qt Creator. +** +** Commercial License Usage +** Licensees holding valid commercial Qt licenses may use this file in +** accordance with the commercial license agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and Digia. For licensing terms and +** conditions see http://qt.digia.com/licensing. For further information +** use the contact form at http://qt.digia.com/contact-us. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Digia gives you certain additional +** rights. These rights are described in the Digia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +****************************************************************************/ + +import QtQuick 2.0 + +ListView { + width: 110 + height: 160 + model: ListModel { + ListElement { + name: "Grey" + colorCode: "grey" + } + ListElement { + name: "Red" + colorCode: "red" + } + ListElement { + name: "Blue" + colorCode: "blue" + } + ListElement { + name: "Green" + colorCode: "green" + } + } + + delegate: Item { + height: 40 + x: 5 + Row { + id: row1 + spacing: 10 + Rectangle { width: 40; height: 40; color: colorCode; } + Text { + text: name + anchors.verticalCenter: parent.verticalCenter + font.bold: true + } + } + } +} diff --git a/src/plugins/qmldesigner/qtquickplugin/source/pathviewv2.qml b/src/plugins/qmldesigner/qtquickplugin/source/pathviewv2.qml new file mode 100644 index 00000000000..97fbf887a51 --- /dev/null +++ b/src/plugins/qmldesigner/qtquickplugin/source/pathviewv2.qml @@ -0,0 +1,78 @@ +/**************************************************************************** +** +** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies). +** Contact: http://www.qt-project.org/legal +** +** This file is part of Qt Creator. +** +** Commercial License Usage +** Licensees holding valid commercial Qt licenses may use this file in +** accordance with the commercial license agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and Digia. For licensing terms and +** conditions see http://qt.digia.com/licensing. For further information +** use the contact form at http://qt.digia.com/contact-us. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Digia gives you certain additional +** rights. These rights are described in the Digia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +****************************************************************************/ + +import QtQuick 2.0 + +PathView { + width: 250 + height: 130 + + path: Path { + startX: 120 + startY: 100 + PathQuad { x: 120; y: 25; controlX: 260; controlY: 75 } + PathQuad { x: 120; y: 100; controlX: -20; controlY: 75 } + } + model: ListModel { + ListElement { + name: "Grey" + colorCode: "grey" + } + ListElement { + name: "Red" + colorCode: "red" + } + ListElement { + name: "Blue" + colorCode: "blue" + } + ListElement { + name: "Green" + colorCode: "green" + } + } + delegate: Component { + Column { + spacing: 5 + Rectangle { + width: 40 + height: 40 + color: colorCode + anchors.horizontalCenter: parent.horizontalCenter + } + Text { + x: 5 + text: name + anchors.horizontalCenter: parent.horizontalCenter + font.bold: true + } + } + } +} + diff --git a/src/plugins/qmldesigner/qtquickplugin/source/texteditv2.qml b/src/plugins/qmldesigner/qtquickplugin/source/texteditv2.qml new file mode 100644 index 00000000000..6c72cb2e7bf --- /dev/null +++ b/src/plugins/qmldesigner/qtquickplugin/source/texteditv2.qml @@ -0,0 +1,37 @@ +/**************************************************************************** +** +** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies). +** Contact: http://www.qt-project.org/legal +** +** This file is part of Qt Creator. +** +** Commercial License Usage +** Licensees holding valid commercial Qt licenses may use this file in +** accordance with the commercial license agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and Digia. For licensing terms and +** conditions see http://qt.digia.com/licensing. For further information +** use the contact form at http://qt.digia.com/contact-us. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Digia gives you certain additional +** rights. These rights are described in the Digia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +****************************************************************************/ + +import QtQuick 2.0 + +TextEdit { + width: 80 + height: 20 + text: qsTr("text edit") + font.pixelSize: 12 +} diff --git a/src/plugins/qmldesigner/qtquickplugin/source/textinputv2.qml b/src/plugins/qmldesigner/qtquickplugin/source/textinputv2.qml new file mode 100644 index 00000000000..0a4772bc882 --- /dev/null +++ b/src/plugins/qmldesigner/qtquickplugin/source/textinputv2.qml @@ -0,0 +1,37 @@ +/**************************************************************************** +** +** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies). +** Contact: http://www.qt-project.org/legal +** +** This file is part of Qt Creator. +** +** Commercial License Usage +** Licensees holding valid commercial Qt licenses may use this file in +** accordance with the commercial license agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and Digia. For licensing terms and +** conditions see http://qt.digia.com/licensing. For further information +** use the contact form at http://qt.digia.com/contact-us. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Digia gives you certain additional +** rights. These rights are described in the Digia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +****************************************************************************/ + +import QtQuick 2.0 + +TextInput { + width: 80 + height: 20 + text: qsTr("text") + font.pixelSize: 12 +} diff --git a/src/plugins/qmldesigner/qtquickplugin/source/textv2.qml b/src/plugins/qmldesigner/qtquickplugin/source/textv2.qml new file mode 100644 index 00000000000..40d59d7145f --- /dev/null +++ b/src/plugins/qmldesigner/qtquickplugin/source/textv2.qml @@ -0,0 +1,35 @@ +/**************************************************************************** +** +** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies). +** Contact: http://www.qt-project.org/legal +** +** This file is part of Qt Creator. +** +** Commercial License Usage +** Licensees holding valid commercial Qt licenses may use this file in +** accordance with the commercial license agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and Digia. For licensing terms and +** conditions see http://qt.digia.com/licensing. For further information +** use the contact form at http://qt.digia.com/contact-us. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Digia gives you certain additional +** rights. These rights are described in the Digia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +****************************************************************************/ + +import QtQuick 2.0 + +Text { + text: qsTr("text") + font.pixelSize: 12 +} |