summaryrefslogtreecommitdiff
path: root/examples/qml/particles/exampleslauncher/content/launcher.js
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qml/particles/exampleslauncher/content/launcher.js')
-rw-r--r--examples/qml/particles/exampleslauncher/content/launcher.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/qml/particles/exampleslauncher/content/launcher.js b/examples/qml/particles/exampleslauncher/content/launcher.js
new file mode 100644
index 0000000000..a296dbd6a6
--- /dev/null
+++ b/examples/qml/particles/exampleslauncher/content/launcher.js
@@ -0,0 +1,8 @@
+function nameFromPath(path){
+ var ret = path.split('/');
+ return ret[ret.length-1].split('.')[0];
+}
+function iconFromPath(path){
+ var ret = path.split('/');
+ return "../images/launcherIcons/" + ret[ret.length-1].split('.')[0] + ".png";
+}