added page transition effects
- added functionality for buttons on PageSettingsServerData page
This commit is contained in:
parent
1e180489a4
commit
de0cd976de
38 changed files with 656 additions and 335 deletions
|
@ -4,8 +4,10 @@ import QtQuick.Controls
|
|||
import QtQuick.Layouts
|
||||
|
||||
import PageType 1.0
|
||||
import PageEnum 1.0
|
||||
|
||||
import "Config"
|
||||
import "Controls2"
|
||||
|
||||
Window {
|
||||
id: root
|
||||
|
@ -27,9 +29,27 @@ Window {
|
|||
color: "#0E0E11"
|
||||
}
|
||||
|
||||
StackView {
|
||||
StackViewType {
|
||||
id: rootStackView
|
||||
|
||||
anchors.fill: parent
|
||||
focus: true
|
||||
initialItem: PageController.getInitialPage()
|
||||
|
||||
Component.onCompleted: {
|
||||
var pagePath = PageController.getPagePath(PageEnum.PageStart)
|
||||
rootStackView.push(pagePath, { "objectName" : pagePath })
|
||||
}
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: PageController
|
||||
|
||||
function onReplaceStartPage() {
|
||||
var pagePath = PageController.getInitialPage()
|
||||
while (rootStackView.depth > 1) {
|
||||
rootStackView.pop()
|
||||
}
|
||||
rootStackView.replace(pagePath, { "objectName" : pagePath })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue