make space for the top krunner ui

This commit is contained in:
Marco Martin 2015-06-22 16:41:23 -07:00
parent b9dfc7d768
commit 65e85b7719
3 changed files with 6 additions and 2 deletions

View file

@ -167,7 +167,7 @@ MouseEventListener {
SatelliteStripe {
id: stripe
z: 99
property int viewPos: applicationsView.contentItem.height * applicationsView.visibleArea.yPosition
property int viewPos: applicationsView.contentItem.height * applicationsView.visibleArea.yPosition + krunner.inputHeight
y: Math.max(viewPos,
Math.min(parent.height, viewPos + plasmoid.availableScreenRect.y + plasmoid.availableScreenRect.height - height) + Math.max(0, -(parent.height - height + applicationsView.contentY)))

View file

@ -35,6 +35,7 @@ Rectangle {
height: childrenRect.height
color: listView.visible ? Qt.rgba(0, 0, 0, 0.8) : "transparent"
property alias showingResults: listView.visible
property int inputHeight: queryField.height + background.fixedMargins.top/2 + background.fixedMargins.bottom
MouseArea {
enabled: listView.visible

View file

@ -1,3 +1,5 @@
import QtQuick 2.0
import org.kde.plasma.core 2.0 as PlasmaCore
@ -15,7 +17,8 @@ PlasmaCore.ColorScope {
}
}
height: applicationsView.cellWidth
//cut away one line from the favorites bar
height: applicationsView.cellWidth - units.gridUnit
width: parent.width
y: parent.height / 2 - height / 2
x: 0