aboutsummaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorThomas Hartmann <thomas.hartmann@qt.io>2019-08-26 14:50:04 +0200
committerThomas Hartmann <thomas.hartmann@qt.io>2019-08-26 14:30:50 +0000
commit8751d0c7d983a97ec2f0c557dde13b0c7592ea13 (patch)
tree7bfa41bbe927e7734a02e0de1dbb5263ed4776ba /share
parent00b29fd90dec051646bbea2f1586be9bc654c1fb (diff)
QmlDesigner: Resize Loader
Task-number: QDS-745 Change-Id: Idf126f5ed00cce74921a320d9bf17ef620ccd511 Reviewed-by: Henning Gründl <henning.gruendl@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Diffstat (limited to 'share')
-rw-r--r--share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/ItemPane.qml10
1 files changed, 8 insertions, 2 deletions
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/ItemPane.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/ItemPane.qml
index a74fc94f1e..5eb3a7cf85 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
}
}
}