diff options
Diffstat (limited to 'share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/QtObjectPane.qml')
-rw-r--r-- | share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/QtObjectPane.qml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/QtObjectPane.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/QtObjectPane.qml index 67e0cff45a..bf02e53803 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/QtObjectPane.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/QtObjectPane.qml @@ -104,7 +104,19 @@ Rectangle { anchors.right: parent.right frameVisible: false + id: tabView + height: Math.max(layoutSectionHeight, specficsHeight) + + property int layoutSectionHeight: 400 + property int specficsOneHeight: 0 + property int specficsTwoHeight: 0 + + property int specficsHeight: Math.max(specficsOneHeight, specficsTwoHeight) + + property int extraHeight: 40 + Tab { + id: tab title: backendValues.className.value component: Column { @@ -125,6 +137,13 @@ Rectangle { active = false active = true } + + property int loaderHeight: specificsTwo.item.height + tabView.extraHeight + onLoaderHeightChanged: tabView.specficsTwoHeight = loaderHeight + + onLoaded: { + tabView.specficsTwoHeight = loaderHeight + } } Loader { @@ -133,6 +152,13 @@ Rectangle { id: specificsOne; source: specificsUrl; + + property int loaderHeight: specificsOne.item.height + tabView.extraHeight + onLoaderHeightChanged: tabView.specficsHeight = loaderHeight + + onLoaded: { + tabView.specficsOneHeight = loaderHeight + } } } } |