summaryrefslogtreecommitdiffstats
path: root/kjsembed/docs/examples/stdicons/stdicons.js
blob: e01c96ece0744692bc4866cf172f60c183a6b7fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env kjscmd

var mainBox = new QVBox(this);
var Icon1 = new QLabel(mainBox);
var Icon2 = new QLabel(mainBox);
var Icon3 = new QLabel(mainBox);
var Icon4 = new QLabel(mainBox);
var Icon5 = new QLabel(mainBox);

Icon1.pixmap = StdIcons.BarIcon("openterm");
Icon2.pixmap = StdIcons.DesktopIcon("folder");
Icon3.pixmap = StdIcons.SmallIcon("folder");
Icon4.pixmap = StdIcons.MainBarIcon("fileclose");
Icon5.pixmap = StdIcons.UserIcon("ftp");

mainBox.show();
application.exec();