fix main layout

This commit is contained in:
Marco Martin 2015-09-23 12:01:13 +02:00
parent 2a0152bad0
commit 1de2633a5b

View file

@ -133,23 +133,16 @@ Rectangle {
} }
ColumnLayout { ColumnLayout {
anchors.fill: parent
GridLayout {
id: topBar
anchors { anchors {
top: parent.top fill: parent
left: parent.left margins: units.smallSpacing
right: parent.right
topMargin: 0
leftMargin: units.smallSpacing
} }
columns: 2 spacing: units.smallSpacing
PlasmaExtras.Title { PlasmaExtras.Title {
id: heading id: heading
text: i18nd("plasma_shell_org.kde.plasma.desktop", "Widgets") text: i18nd("plasma_shell_org.kde.plasma.desktop", "Widgets")
Layout.fillWidth: true Layout.fillWidth: true
}
PlasmaComponents.ToolButton { PlasmaComponents.ToolButton {
id: closeButton id: closeButton
@ -160,6 +153,7 @@ Rectangle {
iconSource: "window-close" iconSource: "window-close"
onClicked: removeAnim.running = true; onClicked: removeAnim.running = true;
} }
}
PlasmaComponents.TextField { PlasmaComponents.TextField {
id: searchInput id: searchInput
@ -172,21 +166,13 @@ Rectangle {
} }
Component.onCompleted: forceActiveFocus() Component.onCompleted: forceActiveFocus()
Layout.columnSpan: 2
Layout.fillWidth: true Layout.fillWidth: true
} }
}
PlasmaExtras.ScrollArea { PlasmaExtras.ScrollArea {
anchors { Layout.fillHeight: true
top: topBar.bottom Layout.fillWidth: true
left: parent.left
right: parent.right
bottom: bottomBar.top
topMargin: units.smallSpacing
leftMargin: units.smallSpacing
bottomMargin: units.smallSpacing
}
GridView { GridView {
id: list id: list