From 9d614131a20d9185a60ff25079195c3df6c5d562 Mon Sep 17 00:00:00 2001 From: Miikka Heikkinen Date: Tue, 25 Mar 2025 17:34:35 +0200 Subject: [PATCH] QmlDesigner: Fix property panes top part layout Search bar was not visible at all and texture pane had weird order with preview above toolbars. Change-Id: I13d0c5383919ba79e54d3fb4a754d9091a7a480c Reviewed-by: Ali Kianian --- .../propertyEditorQmlSources/QtQuick3D/TexturePane.qml | 10 ++++------ .../imports/HelperWidgets/PropertyEditorPane.qml | 2 ++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick3D/TexturePane.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick3D/TexturePane.qml index e7c25024108..a4f961eca46 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick3D/TexturePane.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick3D/TexturePane.qml @@ -34,16 +34,14 @@ Rectangle { Layout.fillWidth: true } - Texture.TopSection { - id: topSection - - Layout.fillWidth: true - } - PropertyEditorPane { Layout.fillWidth: true Layout.fillHeight: true + headerComponent: Texture.TopSection { + id: topSection + } + DynamicPropertiesSection { propertiesModel: PropertyEditorDynamicPropertiesModel {} visible: !hasMultiSelection diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/PropertyEditorPane.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/PropertyEditorPane.qml index 74c66c39f35..e0907551642 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/PropertyEditorPane.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/PropertyEditorPane.qml @@ -39,6 +39,7 @@ Rectangle { id: propertySearchBar contentItem: mainColumn + anchors.top: itemPane.top width: parent.width z: parent.z + 1 } @@ -73,6 +74,7 @@ Rectangle { Rectangle { id: stateSection + anchors.top: toolbar.bottom width: itemPane.width height: StudioTheme.Values.height + StudioTheme.Values.controlGap * 2 color: StudioTheme.Values.themePanelBackground