mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-27 22:33:08 +00:00
the unlock key becomes a rect that contains the svg item. a property alias preserves the api
21 lines
No EOL
503 B
QML
21 lines
No EOL
503 B
QML
import QtQuick 2.0
|
|
import org.kde.plasma.core 2.0 as PlasmaCore
|
|
|
|
Rectangle {
|
|
anchors.top: parent.top
|
|
color: "#00000000"
|
|
property int value: 0
|
|
property alias elementId: glyph.elementId
|
|
width: parent.width / 4
|
|
height: parent.height
|
|
|
|
PlasmaCore.SvgItem {
|
|
id: glyph
|
|
anchors.top: parent.top
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
width: Math.min(parent.height, parent.width)
|
|
height: parent.height
|
|
|
|
svg: symbolsSvg
|
|
}
|
|
} |