Warning, /frameworks/kitemmodels/tests/qml/columnheaders.qml is written in an unsupported language. File is not indexed.

0001 import QtQuick 2.0
0002 import org.kde.kitemmodels 1.0
0003 
0004 // This test is somewhat lame in that it should only display a single "1".
0005 // ListModel only has one column and no way of adding more. And there is not
0006 // really another model that is simple to create from QML that does have columns
0007 // and column headers.
0008 
0009 ListView {
0010     model: KColumnHeadersProxyModel {
0011         sourceModel: ListModel {
0012             ListElement { display: "test1" }
0013             ListElement { display: "test2" }
0014         }
0015     }
0016 
0017     delegate: Text {
0018         text: model.display
0019     }
0020 }
0021