Skip to content

Add list items components

Carl Schwan requested to merge work/carl/listitems into master

Provide two base ItemDelegate based component:

  • RoundedItemDelegate: Normal item delegate based component but with a rounded background
  • ReadIndicatorItemDelegate: Item delegate with a read indicator on the left

Both component only support the text and icon property of the base ItemDelegate, but custom contentItem can be set. 2 component that can be used as contentItem are also provided:

  • DefaultContentItem: Normal content item, provide only text and icon but can be used as a subcomponent inside a more complex contentItem
  • SubtitleContentItem: Normal content item which provide additionally a subtitle property.

image

can be tested and played around with qmlscene-qt5 tests/ListItemsApp.qml

Edited by Carl Schwan

Merge request reports

Loading