cf12defd28
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
21 lines
568 B
QML
21 lines
568 B
QML
import QtQuick
|
|
import org.kde.kitemmodels as KItemModels
|
|
|
|
// This test is somewhat lame in that it should only display a single "1".
|
|
// ListModel only has one column and no way of adding more. And there is not
|
|
// really another model that is simple to create from QML that does have columns
|
|
// and column headers.
|
|
|
|
ListView {
|
|
model: KItemModels.KColumnHeadersModel {
|
|
sourceModel: ListModel {
|
|
ListElement { display: "test1" }
|
|
ListElement { display: "test2" }
|
|
}
|
|
}
|
|
|
|
delegate: Text {
|
|
text: model.display
|
|
}
|
|
}
|