Moving the list item delegate into its own QML file.

This commit is contained in:
2026-03-05 10:54:36 +01:00
parent f1ad289411
commit f2d4461bbc
3 changed files with 22 additions and 20 deletions

19
ListItemDelegate.qml Normal file
View 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
}
}
}