summaryrefslogtreecommitdiffstats
path: root/kjsembed/tests/test_pixmap_slots.js
blob: db32ace211ecca6b1be7d46af10eb309256082a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env kjscmd

var img = new Image();
img.load("test.png");

var pix = img.pixmap();
var btn = new TQToolButton(this);
btn.pixmap =  pix;
btn.setIcon( pix );
btn.show();
application.exec();