-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappc.js
More file actions
28 lines (21 loc) · 869 Bytes
/
appc.js
File metadata and controls
28 lines (21 loc) · 869 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
.pragma library
.import "app.js" as App
/**************************************************************************************************
Keep all custom global js code here
***************************************************************************************************/
function testCallback(x,y){
console.log("X:"+x);
console.log("Y:"+y);
console.log("testCallback called");
App.hideDock();
}
function setup(){
App.addDockItem("fa-times-circle-o","Times Circle",testCallback);
App.addDockItem("mf-watch","Watch",testCallback);
App.addDockItem(App.resolveURL("/app.png"),"Qb Logo",testCallback);
console.log(App.getList("/"));
App.onGridStateChanged(function(){console.log(App.gridState())});
App.addPage("/pages/TestPage.qml");
App.addPage("/pages/TestPage2.qml");
App.addPage("/pages/TestPage3.qml");
}