diff options
Diffstat (limited to 'kjsembed/tests/test_pixmap_slots.js')
-rw-r--r-- | kjsembed/tests/test_pixmap_slots.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/kjsembed/tests/test_pixmap_slots.js b/kjsembed/tests/test_pixmap_slots.js new file mode 100644 index 00000000..f2ca40fa --- /dev/null +++ b/kjsembed/tests/test_pixmap_slots.js @@ -0,0 +1,11 @@ +#!/usr/bin/env kjscmd + +var img = new Image(); +img.load("test.png"); + +var pix = img.pixmap(); +var btn = new QToolButton(this); +btn.pixmap = pix; +btn.setIcon( pix ); +btn.show(); +application.exec(); |