From 8751d0c7d983a97ec2f0c557dde13b0c7592ea13 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Mon, 26 Aug 2019 14:50:04 +0200 Subject: [PATCH] QmlDesigner: Resize Loader MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Task-number: QDS-745 Change-Id: Idf126f5ed00cce74921a320d9bf17ef620ccd511 Reviewed-by: Henning Gründl Reviewed-by: Thomas Hartmann --- .../propertyEditorQmlSources/QtQuick/ItemPane.qml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/ItemPane.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/ItemPane.qml index a74fc94f1e5..5eb3a7cf854 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/ItemPane.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/ItemPane.qml @@ -247,8 +247,11 @@ Rectangle { active = true } + property int loaderHeight: specificsOne.item.height + tabView.extraHeight + onLoaderHeightChanged: tabView.specficsOneHeight = loaderHeight + onLoaded: { - tabView.specficsTwoHeight = specificsTwo.item.height + tabView.extraHeight + tabView.specficsTwoHeight = loaderHeight } } @@ -259,8 +262,11 @@ Rectangle { id: specificsOne; source: specificsUrl; + property int loaderHeight: specificsOne.item.height + tabView.extraHeight + onLoaderHeightChanged: tabView.specficsOneHeight = loaderHeight + onLoaded: { - tabView.specficsOneHeight = specificsOne.item.height + tabView.extraHeight + tabView.specficsOneHeight = loaderHeight } } }