placeholder areas for settings and lock

This commit is contained in:
Marco Martin 2015-03-11 12:33:15 +01:00
parent 0c531de5b0
commit 50fc65fe67

View file

@ -91,6 +91,7 @@ Item {
LayoutManager.layout = appletsSpace.layout; LayoutManager.layout = appletsSpace.layout;
LayoutManager.lastSpacer = appletsSpace.lastSpacer; LayoutManager.lastSpacer = appletsSpace.lastSpacer;
LayoutManager.restore(); LayoutManager.restore();
applicationsView.contentY = -root.height;
} }
SatelliteComponents.ApplicationListModel { SatelliteComponents.ApplicationListModel {
@ -166,10 +167,10 @@ Item {
delegate: HomeLauncher {} delegate: HomeLauncher {}
header: MouseArea { header: MouseArea {
z: 999 z: 999
property Item layout: mainLayout property Item layout: appletsLayout
property Item lastSpacer: spacer property Item lastSpacer: spacer
width: root.width width: root.width
height: Math.max(root.height, ((root.height - units.gridUnit * 2)/2) * mainLayout.children.length) height: mainLayout.Layout.minimumHeight + stripe.height + units.gridUnit * 2
onPressAndHold: { onPressAndHold: {
plasmoid.action("configure").trigger(); plasmoid.action("configure").trigger();
@ -181,12 +182,39 @@ Item {
fill: parent fill: parent
bottomMargin: stripe.height + units.gridUnit * 2 bottomMargin: stripe.height + units.gridUnit * 2
} }
Item {
Layout.fillWidth: true
Layout.minimumHeight: root.height
PlasmaCore.IconItem {
source: "go-up"
width: units.iconSizes.huge
height: width
anchors {
horizontalCenter: parent.horizontalCenter
bottom: parent.bottom
}
}
}
Rectangle {
color: Qt.rgba(0, 0, 0, 0.6)
Layout.fillWidth: true
Layout.minimumHeight: root.height
PlasmaComponents.Label {
anchors.centerIn: parent
text: "Settings Area"
font.pointSize: 20
}
}
ColumnLayout {
id: appletsLayout
Layout.minimumHeight: Math.max(root.height, Layout.preferredHeight)
Item { Item {
id: spacer id: spacer
Layout.fillWidth: true Layout.fillWidth: true
Layout.fillHeight: true Layout.fillHeight: true
} }
} }
}
SatelliteStripe { SatelliteStripe {
id: stripe id: stripe
z: 99 z: 99