summaryrefslogtreecommitdiffstats
path: root/kjsembed/tests/test_pixmap_slots.js
diff options
context:
space:
mode:
Diffstat (limited to 'kjsembed/tests/test_pixmap_slots.js')
-rw-r--r--kjsembed/tests/test_pixmap_slots.js11
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();