diff options
author | Aleksei German <aleksei.german@qt.io> | 2023-05-31 17:20:56 +0200 |
---|---|---|
committer | Aleksei German <aleksei.german@qt.io> | 2023-05-31 21:05:41 +0200 |
commit | 36941ab4a1d795bfd1a3535fe8f4a84dfd4060b1 (patch) | |
tree | e25571757bdae94a254244e63050423c06329945 | |
parent | 50f5e218ff75c3c21ffa4801cb068017373d371f (diff) |
QmlDesigner: Improve Ultralite compat metainfo
Task-number: QDS-9824
Change-Id: I2d819c72f68ca7f3bf7142cf2b3a8322e155949d
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
-rw-r--r-- | src/imports/compat/Extras/designer/QtQuickUltraliteExtras.metainfo | 15 | ||||
-rw-r--r-- | src/imports/compat/Layers/designer/QtQuickUltraliteLayers.metainfo | 29 |
2 files changed, 36 insertions, 8 deletions
diff --git a/src/imports/compat/Extras/designer/QtQuickUltraliteExtras.metainfo b/src/imports/compat/Extras/designer/QtQuickUltraliteExtras.metainfo index ab5716c..755a3bd 100644 --- a/src/imports/compat/Extras/designer/QtQuickUltraliteExtras.metainfo +++ b/src/imports/compat/Extras/designer/QtQuickUltraliteExtras.metainfo @@ -7,9 +7,14 @@ MetaInfo { name: "Colorized Image" category: "QtQuickUltralite - Extras" libraryIcon: "images/image-icon@2x.png" - version: "1.9" + version: "1.0" requiredImport: "QtQuickUltralite.Extras" - Property { name: "source"; type: "binding"; value: "\"source/text\""; } + + 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"; } + + toolTip: qsTr("Displays a colorized image.") } } Type { @@ -20,9 +25,13 @@ MetaInfo { name: "Static Text" category: "QtQuickUltralite - Extras" libraryIcon: "images/text-icon@2x.png" - version: "1.9" + version: "1.0" requiredImport: "QtQuickUltralite.Extras" + + Property { name: "font.pixelSize"; type: "int"; value: 12; } Property { name: "text"; type: "binding"; value: "qsTr(\"Static Text\")"; } + + toolTip: qsTr("Enables optimized drawing of text.") } } } diff --git a/src/imports/compat/Layers/designer/QtQuickUltraliteLayers.metainfo b/src/imports/compat/Layers/designer/QtQuickUltraliteLayers.metainfo index 649154b..c16fb25 100644 --- a/src/imports/compat/Layers/designer/QtQuickUltraliteLayers.metainfo +++ b/src/imports/compat/Layers/designer/QtQuickUltraliteLayers.metainfo @@ -7,8 +7,10 @@ MetaInfo { name: "Application" category: "QtQuickUltralite - Layers" libraryIcon: "images/item-icon@2x.png" - version: "1.9" + version: "1.0" requiredImport: "QtQuickUltralite.Layers" + + toolTip: qsTr("An application container for multiple screens.") } Hints { @@ -26,11 +28,15 @@ MetaInfo { name: "Image Layer" category: "QtQuickUltralite - Layers" libraryIcon: "images/item-icon@2x.png" - version: "1.9" + version: "1.0" requiredImport: "QtQuickUltralite.Layers" Property { name: "renderingHints"; type: "enum"; value: "ImageLayer.OptimizeForSpeed"; } Property { name: "platformId"; type: "int"; value: 0; } + Property { name: "width"; type: "int"; value: 200; } + Property { name: "height"; type: "int"; value: 200; } + + toolTip: qsTr("A layer consisting of a single image.") } } Type { @@ -41,13 +47,17 @@ MetaInfo { name: "Item Layer" category: "QtQuickUltralite - Layers" libraryIcon: "images/item-icon@2x.png" - version: "1.9" + version: "1.0" requiredImport: "QtQuickUltralite.Layers" Property { name: "depth"; type: "enum"; value: "ItemLayer.Bpp32"; } Property { name: "renderingHints"; type: "enum"; value: "ItemLayer.OptimizeForSpeed"; } Property { name: "refreshInterval"; type: "int"; value: 1; } Property { name: "platformId"; type: "int"; value: 0; } + Property { name: "width"; type: "int"; value: 200; } + Property { name: "height"; type: "int"; value: 200; } + + toolTip: qsTr("A layer containing dynamic Qt Quick Ultralite items.") } } Type { @@ -58,8 +68,13 @@ MetaInfo { name: "Screen" category: "QtQuickUltralite - Layers" libraryIcon: "images/item-icon@2x.png" - version: "1.9" + version: "1.0" requiredImport: "QtQuickUltralite.Layers" + + Property { name: "width"; type: "int"; value: 200; } + Property { name: "height"; type: "int"; value: 200; } + + toolTip: qsTr("Contains QML items to be shown on a specific screen.") } Hints { @@ -77,11 +92,15 @@ MetaInfo { name: "Sprite Layer" category: "QtQuickUltralite - Layers" libraryIcon: "images/item-icon@2x.png" - version: "1.9" + version: "1.0" requiredImport: "QtQuickUltralite.Layers" Property { name: "depth"; type: "enum"; value: "SpriteLayer.Bpp32"; } Property { name: "platformId"; type: "int"; value: 0; } + Property { name: "width"; type: "int"; value: 200; } + Property { name: "height"; type: "int"; value: 200; } + + toolTip: qsTr("A sprite layer which can contain multiple image and item layers.") } } } |