-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMainView.qml
51 lines (42 loc) · 1 KB
/
MainView.qml
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import QtQuick 2.0
import Sparrow 1.0
import QtQuick.Controls 1.2
import QtQuick.Layouts 1.1
Page {
id: page
topBar: TopBar {
RowLayout {
anchors.fill: parent
Button {
text: "try to hot fix"
onClicked: {
tryToHotFixChat();
}
}
Button {
text: "load chat"
onClicked: {
loadLocalSourceChat();
}
}
}
}
function tryToHotFixChat() {
var bussinessName = "Chat";
var callback = function (url) {
__PushPage(url, Component.Asynchronous);
};
try {
pageStackWindow.tryToHotFix("Chat", callback);
} catch(e) {
console.log(e)
}
}
function loadLocalSourceChat() {
try {
__PushPage(pageStackWindow.getBussinessPageSource("Chat"))
} catch(e) {
console.log(e)
}
}
}