Moving the list item delegate into its own QML file.
This commit is contained in:
19
ListItemDelegate.qml
Normal file
19
ListItemDelegate.qml
Normal file
@ -0,0 +1,19 @@
|
||||
import QtQuick
|
||||
|
||||
Item {
|
||||
id: myItem
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user