blob: 5bca90c5685630f5c2e93d89d7e6b7ef71b4cff6 (
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 QVBox( 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();
|