-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.qml
62 lines (60 loc) · 1.75 KB
/
main.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
51
52
53
54
55
56
57
58
59
60
61
62
import QtQuick 2.7
import QtQuick.Controls 2.12
import QtQuick.Layouts 1.0
ApplicationWindow {
id: id_AppWin
visible: true
width: 480
height: 800
title: qsTr("=adn pwd=")
color: "#242C42"
property color globalFontColor: "#C5C5C9"
SwipeView {
id: id_swipeView
anchors.fill: parent
interactive: false
onCurrentIndexChanged:{
if(id_swipeView.currentIndex == 2)
id_swipeView.interactive = true
else
id_swipeView.interactive = false
}
Login{
id: id_login
}
ViewKeyList{
id: id_keyListObject
onSgnChangeState: {
id_dataFormObject.state = theNewState
id_swipeView.currentIndex = 2
}
}
ViewData{
id: id_dataFormObject
}
}
PageIndicator {
id: indicator
count: id_swipeView.count
currentIndex: id_swipeView.currentIndex
anchors.bottom: id_swipeView.bottom
anchors.horizontalCenter: parent.horizontalCenter
}
Connections{
target: id_pwdHandler
onSgn_pwdIsOk:{
console.log("pwd Ok")
id_swipeView.currentIndex = 1;
}
onSgn_pwdNotOk:{
console.log(popupTitle +" " + popupMsg + " pwd Not ok")
id_login.pr_loginPwdText = ""
id_login.pr_changeloginPwdText = ""
id_login.pr_newPwdText = ""
id_login.pr_repeatPwdText = ""
id_login.pr_popupAlert.open()
id_login.pr_popupAlert.pr_popupTitle = popupTitle
id_login.pr_popupAlert.pr_popupMessage = popupMsg
}
}
}