25 lines
494 B
QML
25 lines
494 B
QML
import QtQuick
|
|
|
|
Item {
|
|
id: myItem
|
|
required property int index
|
|
required property string name
|
|
required property string info
|
|
property int fontSize: 16
|
|
|
|
width: parent.width
|
|
height: 40
|
|
Column {
|
|
Text {
|
|
text: '<b>Name:</b> ' + myItem.name
|
|
}
|
|
Text {
|
|
text: '<b>Info:</b> ' + myItem.info
|
|
}
|
|
}
|
|
MouseArea {
|
|
anchors.fill: parent
|
|
onClicked: parent.ListView.view.currentIndex = parent.index
|
|
}
|
|
}
|