1234567891011121314151617181920212223242526272829303132 |
- import QtQuick 1.1
- Rectangle {
- id: root
- property alias text: label.text
- signal clicked
- objectName: "kMenuItem"
- height: 60
- width: parent.width
- color: "transparent"
- KLabel{
- id: label
- anchors.fill:parent
- anchors.leftMargin: 20
- anchors.verticalCenter: parent.verticalCenter
- verticalAlignment: Text.AlignVCenter
- }
- MouseArea{
- id: mouseArea
- anchors.fill:parent
- onClicked: root.clicked()
- }
- Rectangle{ //This is a line in fact
- width:root.width
- height:1
- anchors.bottom:parent.bottom
- color: "#8f00FF"
- }
- }
|