the buttons in the stripe

This commit is contained in:
Aaron Seigo 2014-08-19 14:08:19 +02:00
parent dcd9056f29
commit f5754bde8c

View file

@ -1,20 +1,98 @@
import QtQuick 2.0
import org.kde.plasma.core 2.0 as PlasmaCore
import "../components"
Item {
id: lockscreen
PlasmaCore.Svg {
id: symbolsSvg
imagePath: Qt.resolvedUrl("images/symbols.svgz")
}
Leaves {
id: background
anchors.fill: parent
}
Rectangle {
id: test
color: "red"
opacity: .5
height: 100
width: parent.width
y: parent.height / 2 - height / 2
x: 0
SatelliteStripe {
id: stripe
PlasmaCore.SvgItem {
id: square
property int value: 1
opacity: 1
anchors.top: parent.top
anchors.left: parent.left
width: parent.width/4
height: parent.height
svg: symbolsSvg
elementId: "square"
MouseArea {
anchors.fill: parent
onPressed: {
console.log("square");
}
}
}
PlasmaCore.SvgItem {
id: circle
property int value: 2
anchors.top: parent.top
anchors.left: square.right
width: square.width
height: square.height
svg: symbolsSvg
elementId: "circle"
MouseArea {
anchors.fill: parent
onPressed: {
console.log("circle");
}
}
}
PlasmaCore.SvgItem {
id: ex
property int value: 3
anchors.top: parent.top
anchors.left: circle.right
width: square.width
height: square.height
svg: symbolsSvg
elementId: "ex"
MouseArea {
anchors.fill: parent
onPressed: {
console.log("ex");
}
}
}
PlasmaCore.SvgItem {
id: triangle
property int value: 4
anchors.top: parent.top
anchors.left: ex.right
width: parent.width - (square.width * 3)
height: square.height
svg: symbolsSvg
elementId: "triangle"
MouseArea {
anchors.fill: parent
onPressed: {
console.log("triangle");
}
}
}
}
}