forked from qt-creator/qt-creator
QmlDesigner: Remove space at the top of the assets lib
Now hidden section header doesn't occupy space. Change-Id: Ied4e9ee3c7601c291383f73337e98cb7ffd77f54 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
This commit is contained in:
@@ -54,11 +54,6 @@ Item {
|
||||
property bool addTopPadding: true
|
||||
property bool addBottomPadding: true
|
||||
|
||||
onHideHeaderChanged: {
|
||||
header.visible = !hideHeader
|
||||
header.height = hideHeader ? 0 : 20
|
||||
}
|
||||
|
||||
clip: true
|
||||
|
||||
signal showContextMenu()
|
||||
@@ -66,7 +61,8 @@ Item {
|
||||
|
||||
Rectangle {
|
||||
id: header
|
||||
height: StudioTheme.Values.sectionHeadHeight
|
||||
height: hideHeader ? 0 : StudioTheme.Values.sectionHeadHeight
|
||||
visible: !hideHeader
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
color: Qt.lighter(StudioTheme.Values.themeSectionHeadBackground, 1.0 + (0.2 * section.level))
|
||||
|
Reference in New Issue
Block a user