From 66c589f9ca21fb2661a580388897f21d77cf356e Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Wed, 27 Jul 2016 11:44:05 +0200 Subject: [PATCH] QmlDesigner.ItemLibrary: Adding support for StackLayout The StackLayout is working and it makes sense to add it to the item library. Change-Id: I732398a25091f2a33f38c42f5bf1c55ef9dac237 Reviewed-by: Alessandro Portale --- .../componentsplugin/components.metainfo | 16 ++++++++++++++++ .../componentsplugin/componentsplugin.qrc | 2 ++ .../images/stack-layouts-icon-16px.png | Bin 0 -> 147 bytes .../images/stack-layouts-icon.png | Bin 0 -> 157 bytes 4 files changed, 18 insertions(+) create mode 100644 src/plugins/qmldesigner/componentsplugin/images/stack-layouts-icon-16px.png create mode 100644 src/plugins/qmldesigner/componentsplugin/images/stack-layouts-icon.png diff --git a/src/plugins/qmldesigner/componentsplugin/components.metainfo b/src/plugins/qmldesigner/componentsplugin/components.metainfo index 01da4319f9b..22f782038b9 100644 --- a/src/plugins/qmldesigner/componentsplugin/components.metainfo +++ b/src/plugins/qmldesigner/componentsplugin/components.metainfo @@ -342,6 +342,22 @@ MetaInfo { } } +Type { + name: "QtQuick.Layouts.StackLayout" + icon: ":/componentsplugin/images/stack-layouts-icon-16px.png" + + ItemLibraryEntry { + name: "StackLayout" + category: "Qt Quick - Layouts" + libraryIcon: ":/componentsplugin/images/stack-layouts-icon.png" + version: "1.3" + requiredImport: "QtQuick.Layouts" + + Property { name: "width"; type: "int"; value: 100; } + Property { name: "height"; type: "int"; value: 100; } + } +} + Type { name: "QtQuick.Controls.TabView" icon: ":/componentsplugin/images/window16.png" diff --git a/src/plugins/qmldesigner/componentsplugin/componentsplugin.qrc b/src/plugins/qmldesigner/componentsplugin/componentsplugin.qrc index dcc5f6eccfd..3a8361e20bd 100644 --- a/src/plugins/qmldesigner/componentsplugin/componentsplugin.qrc +++ b/src/plugins/qmldesigner/componentsplugin/componentsplugin.qrc @@ -43,6 +43,8 @@ images/row-layouts-icon-16px.png images/splitview-layouts-icon.png images/splitview-layouts-icon-16px.png + images/stack-layouts-icon.png + images/stack-layouts-icon-16px.png Controls/ButtonSpecifics.qml diff --git a/src/plugins/qmldesigner/componentsplugin/images/stack-layouts-icon-16px.png b/src/plugins/qmldesigner/componentsplugin/images/stack-layouts-icon-16px.png new file mode 100644 index 0000000000000000000000000000000000000000..3f7ab00c1d6544c3965f9ea8490b5393e773df1c GIT binary patch literal 147 zcmeAS@N?(olHy`uVBq!ia0y~yU=RRd4h9AW2CEqh_A)RqM0vV6hDd}bPjX`R`5$95 z@u2;(|M`AOjp6@i{`>oX{v1~3|C0X<|0e%9&%>_J_@C$h|3i!un1epD^A)W8(XPT^ zG=*_tYom|z|Nrq@S=bcXvXmJoOpA@4c(9%!_tz>%t?R+7LAH6i`njxgN@xNA$gDNf literal 0 HcmV?d00001 diff --git a/src/plugins/qmldesigner/componentsplugin/images/stack-layouts-icon.png b/src/plugins/qmldesigner/componentsplugin/images/stack-layouts-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..bbd6783cc540ec4723e12052accec0cce7e47f80 GIT binary patch literal 157 zcmeAS@N?(olHy`uVBq!ia0y~yV2}V|4h9AWhNCh`Dhvz^DV{ElAsXk`PT0uX;K0ND zH%P$xLZC7G;thh?7mNf