diff options
author | Thomas Hartmann <Thomas.Hartmann@digia.com> | 2013-11-13 17:28:16 +0100 |
---|---|---|
committer | Thomas Hartmann <Thomas.Hartmann@digia.com> | 2013-11-15 15:13:57 +0100 |
commit | 5b693cdac07d0a4bc14d35d89e5b21fa70ae687c (patch) | |
tree | c999c527aa7a1f0e2a53b1fa7b757712e9af9e4a /src/plugins/qmldesigner/qtquickplugin | |
parent | ed037404350da09c2146394efbe8b026e69b6e85 (diff) |
QmlDesigner.ItemLibrary: Allow bindings without extra source file
This makes drag and drop faster than merging code.
Task-number: QTCREATORBUG-9361
Change-Id: If9779d7439ea41edfb80c08161b7ef3d0f08cf41
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
Diffstat (limited to 'src/plugins/qmldesigner/qtquickplugin')
-rw-r--r-- | src/plugins/qmldesigner/qtquickplugin/quick.metainfo | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/src/plugins/qmldesigner/qtquickplugin/quick.metainfo b/src/plugins/qmldesigner/qtquickplugin/quick.metainfo index 31a1b97a3d3..bd8a6b2dc18 100644 --- a/src/plugins/qmldesigner/qtquickplugin/quick.metainfo +++ b/src/plugins/qmldesigner/qtquickplugin/quick.metainfo @@ -63,7 +63,8 @@ MetaInfo { libraryIcon: ":/qtquickplugin/images/text-icon.png" version: "1.0" - QmlSource { source: ":/qtquickplugin/source/text.qml" } + Property { name: "font.pixelSize"; type: "int"; value: 12; } + Property { name: "text"; type: "binding"; value: "qsTr(\"Text\")"; } } ItemLibraryEntry { @@ -72,7 +73,8 @@ MetaInfo { libraryIcon: ":/qtquickplugin/images/text-icon.png" version: "2.0" - QmlSource { source: ":/qtquickplugin/source/textv2.qml" } + Property { name: "font.pixelSize"; type: "int"; value: 12; } + Property { name: "text"; type: "binding"; value: "qsTr(\"Text\")"; } } } @@ -86,7 +88,11 @@ MetaInfo { libraryIcon: ":/qtquickplugin/images/text-edit-icon.png" version: "1.0" - QmlSource { source: ":/qtquickplugin/source/textedit.qml" } + Property { name: "width"; type: "int"; value: 80; } + Property { name: "height"; type: "int"; value: 20; } + Property { name: "font.pixelSize"; type: "int"; value: 12; } + Property { name: "text"; type: "binding"; value: "qsTr(\"Text Edit\")"; } + } ItemLibraryEntry { @@ -95,7 +101,10 @@ MetaInfo { libraryIcon: ":/qtquickplugin/images/text-edit-icon.png" version: "2.0" - QmlSource { source: ":/qtquickplugin/source/texteditv2.qml" } + Property { name: "width"; type: "int"; value: 80; } + Property { name: "height"; type: "int"; value: 20; } + Property { name: "font.pixelSize"; type: "int"; value: 12; } + Property { name: "text"; type: "binding"; value: "qsTr(\"Text Edit\")"; } } } @@ -109,7 +118,10 @@ MetaInfo { libraryIcon: ":/qtquickplugin/images/text-edit-icon.png" version: "1.0" - QmlSource { source: ":/qtquickplugin/source/textinput.qml" } + Property { name: "width"; type: "int"; value: 80; } + Property { name: "height"; type: "int"; value: 20; } + Property { name: "font.pixelSize"; type: "int"; value: 12; } + Property { name: "text"; type: "binding"; value: "qsTr(\"Text Input\")"; } } ItemLibraryEntry { @@ -118,7 +130,10 @@ MetaInfo { libraryIcon: ":/qtquickplugin/images/text-input-icon.png" version: "2.0" - QmlSource { source: ":/qtquickplugin/source/textinput.qml" } + Property { name: "width"; type: "int"; value: 80; } + Property { name: "height"; type: "int"; value: 20; } + Property { name: "font.pixelSize"; type: "int"; value: 12; } + Property { name: "text"; type: "binding"; value: "qsTr(\"Text Input\")"; } } } |