forked from qt-creator/qt-creator
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 <ali.kianian@qt.io>
This commit is contained in:
@@ -34,16 +34,14 @@ Rectangle {
|
|||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
|
||||||
Texture.TopSection {
|
|
||||||
id: topSection
|
|
||||||
|
|
||||||
Layout.fillWidth: true
|
|
||||||
}
|
|
||||||
|
|
||||||
PropertyEditorPane {
|
PropertyEditorPane {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
|
|
||||||
|
headerComponent: Texture.TopSection {
|
||||||
|
id: topSection
|
||||||
|
}
|
||||||
|
|
||||||
DynamicPropertiesSection {
|
DynamicPropertiesSection {
|
||||||
propertiesModel: PropertyEditorDynamicPropertiesModel {}
|
propertiesModel: PropertyEditorDynamicPropertiesModel {}
|
||||||
visible: !hasMultiSelection
|
visible: !hasMultiSelection
|
||||||
|
@@ -39,6 +39,7 @@ Rectangle {
|
|||||||
id: propertySearchBar
|
id: propertySearchBar
|
||||||
|
|
||||||
contentItem: mainColumn
|
contentItem: mainColumn
|
||||||
|
anchors.top: itemPane.top
|
||||||
width: parent.width
|
width: parent.width
|
||||||
z: parent.z + 1
|
z: parent.z + 1
|
||||||
}
|
}
|
||||||
@@ -73,6 +74,7 @@ Rectangle {
|
|||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: stateSection
|
id: stateSection
|
||||||
|
anchors.top: toolbar.bottom
|
||||||
width: itemPane.width
|
width: itemPane.width
|
||||||
height: StudioTheme.Values.height + StudioTheme.Values.controlGap * 2
|
height: StudioTheme.Values.height + StudioTheme.Values.controlGap * 2
|
||||||
color: StudioTheme.Values.themePanelBackground
|
color: StudioTheme.Values.themePanelBackground
|
||||||
|
Reference in New Issue
Block a user