summaryrefslogtreecommitdiffstats
path: root/kjsembed/docs/examples/listview/listview.js
blob: 041970053e54b734dec52ef62af5864ae37e8447 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env kjscmd

// Create main view
var mw = new KMainWindow();
var box = new TQVBox( mw );
mw.setCentralWidget(box);

var lv = new KListView( box );

lv.addColumn('Pix');
lv.addColumn('One');
lv.addColumn('Two');
lv.addColumn('Three');

lv.insertItem( StdIcons.BarIcon("no"), 'Something', "Nothing", "Thing" );
lv.insertItem( StdIcons.BarIcon("no"), 'Something', "Nothing", "Thing" );
lv.insertItem( StdIcons.BarIcon("no"), 'Something', "Nothing", "Thing" );
lv.insertItem( StdIcons.BarIcon("no"), 'Something', "Nothing", "Thing" );


mw.show();
application.exec();