26 lines
473 B
QML
26 lines
473 B
QML
import QtQuick 2.15
|
|
import QtQuick.Controls 2.15
|
|
|
|
Rectangle {
|
|
property alias text: itemText.text
|
|
|
|
height: 32
|
|
color: "transparent"
|
|
|
|
Text {
|
|
id: itemText
|
|
anchors.fill: parent
|
|
anchors.leftMargin: 5
|
|
verticalAlignment: Text.AlignVCenter
|
|
font.pixelSize: 16
|
|
elide: Text.ElideRight
|
|
}
|
|
|
|
MouseArea {
|
|
anchors.fill: parent
|
|
onClicked: {
|
|
// Обработка клика
|
|
}
|
|
}
|
|
}
|