mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-07 03:22:33 +01:00
2. Renaming
This commit is contained in:
parent
f3ceac3bbc
commit
00cb933ded
20
qml/main.qml
20
qml/main.qml
@ -20,7 +20,7 @@ ApplicationWindow {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
id: pageLoader
|
id: tabLoader
|
||||||
source : "qrc:/qml/Components/Installed.qml"
|
source : "qrc:/qml/Components/Installed.qml"
|
||||||
anchors {
|
anchors {
|
||||||
top: nav.bottom
|
top: nav.bottom
|
||||||
@ -29,9 +29,9 @@ ApplicationWindow {
|
|||||||
left: parent.left
|
left: parent.left
|
||||||
}
|
}
|
||||||
onStateChanged: {
|
onStateChanged: {
|
||||||
if(pageLoader.state === Loader.Loading){
|
if(tabLoader.state === Loader.Loading){
|
||||||
loaderText.visible = true
|
loaderText.visible = true
|
||||||
} else if(pageLoader.state === Loader.Ready){
|
} else if(tabLoader.state === Loader.Ready){
|
||||||
loaderText.visible = false
|
loaderText.visible = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -55,17 +55,17 @@ ApplicationWindow {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
// onSourceChanged: pageLoaderAnim.running = true
|
// onSourceChanged: tabLoaderAnim.running = true
|
||||||
|
|
||||||
// SequentialAnimation {
|
// SequentialAnimation {
|
||||||
// id:pageLoaderAnim
|
// id:tabLoaderAnim
|
||||||
// running: true
|
// running: true
|
||||||
// NumberAnimation { target: pageLoader.item; property: "opacity"; from:0; to: 1; duration: 500 }
|
// NumberAnimation { target: tabLoader.item; property: "opacity"; from:0; to: 1; duration: 500 }
|
||||||
// NumberAnimation { target: pageLoader.item; property: "y"; from: -100; to: 0; duration: 300 }
|
// NumberAnimation { target: tabLoader.item; property: "y"; from: -100; to: 0; duration: 300 }
|
||||||
// }
|
// }
|
||||||
|
|
||||||
Connections{
|
Connections{
|
||||||
target: pageLoader.item
|
target: tabLoader.item
|
||||||
ignoreUnknownSignals: true
|
ignoreUnknownSignals: true
|
||||||
onSetSidebaractiveItem: {
|
onSetSidebaractiveItem: {
|
||||||
if( sidebar.activeScreen == screenId && sidebar.state == "active"){
|
if( sidebar.activeScreen == screenId && sidebar.state == "active"){
|
||||||
@ -98,7 +98,7 @@ ApplicationWindow {
|
|||||||
left: parent.left
|
left: parent.left
|
||||||
}
|
}
|
||||||
onChangeTab: {
|
onChangeTab: {
|
||||||
pageLoader.setSource("qrc:/qml/Components/"+name+".qml")
|
tabLoader.setSource("qrc:/qml/Components/"+name+".qml")
|
||||||
sidebar.state = "inactive"
|
sidebar.state = "inactive"
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -111,7 +111,7 @@ ApplicationWindow {
|
|||||||
Monitors {
|
Monitors {
|
||||||
id: monitors
|
id: monitors
|
||||||
state: "inactive"
|
state: "inactive"
|
||||||
anchors.fill: pageLoader
|
anchors.fill: tabLoader
|
||||||
z:98
|
z:98
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user