if our symbols are a different size, they need to be inner centered

the unlock key becomes a rect that contains the svg item. a property
alias preserves the api
This commit is contained in:
Aaron Seigo 2014-08-22 11:41:46 +02:00
parent 68bf52bccb
commit 8c4eba538a

View file

@ -1,12 +1,21 @@
import QtQuick 2.0
import org.kde.plasma.core 2.0 as PlasmaCore
PlasmaCore.SvgItem {
id: square
property int value: 0
Rectangle {
anchors.top: parent.top
width: parent.width/4
color: "#00000000"
property int value: 0
property alias elementId: glyph.elementId
width: parent.width / 4
height: parent.height
svg: symbolsSvg
}
PlasmaCore.SvgItem {
id: glyph
anchors.top: parent.top
anchors.horizontalCenter: parent.horizontalCenter
width: Math.min(parent.height, parent.width)
height: parent.height
svg: symbolsSvg
}
}