-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.qml
More file actions
executable file
·74 lines (68 loc) · 1.94 KB
/
app.qml
File metadata and controls
executable file
·74 lines (68 loc) · 1.94 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
import Qb 1.0
import Qb.Core 1.0
import QtQuick 2.10
import QtQuick.Controls 2.3
import QtQuick.Controls.Material 2.3
QbApp{
id: appUi
Keys.forwardTo: [objWebREPL]
QbSettings {
id: appSettings
name: "MPWebREPL"
property alias ip: objWebREPL.ip
}
QbMetaTheme{
id: appTheme
}
Connections{
target: Qt.inputMethod
onVisibleChanged:{
if(Qt.inputMethod.visible){
if(Qt.platform.os === "android"){
var v = false;
if(appUi.height>appUi.width){
v = true;
}
if(v){
objInvisibleBlock.height = QbCoreOne.scale(275);
}
else{
objInvisibleBlock.height = QbCoreOne.scale(200);
}
}
else if(Qt.platform.os === "ios"){
objInvisibleBlock.height = Qt.inputMethod.keyboardRectangle.height();
}
}
else{
objInvisibleBlock.height = 1;
}
}
}
Pane{
id: appMainPage
topPadding: QbCoreOne.scale(25)
bottomPadding: 0
leftPadding: 0
rightPadding: 0
Material.background: appTheme.background
Material.foreground: appTheme.foreground
Material.accent: appTheme.accent
Material.primary: appTheme.primary
Material.theme: appTheme.theme === "dark"?Material.Dark:Material.Light
anchors.fill: parent
WebREPL{
id: objWebREPL
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right
anchors.bottom: objInvisibleBlock.top
}
Item{
id: objInvisibleBlock
width: parent.width
height: 1
anchors.bottom: parent.bottom
}
}
}