1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-09-20 01:11:47 +02:00

Fix loading of wizard elements

This commit is contained in:
Elias Steurer 2019-12-05 15:23:07 +01:00
parent 942f4186ae
commit 799b4a0138
2 changed files with 9 additions and 3 deletions

View File

@ -22,7 +22,7 @@ Item {
state = "in" state = "in"
ScreenPlay.util.setNavigationActive(false) ScreenPlay.util.setNavigationActive(false)
loader_wrapperContent.setSource( wizard.setSource(
"qrc:/qml/Create/Wizards/CreateWallpaper/CreateWallpaperVideoImportConvert.qml", "qrc:/qml/Create/Wizards/CreateWallpaper/CreateWallpaperVideoImportConvert.qml",
{ {
"filePath": createNew.filePath "filePath": createNew.filePath
@ -59,7 +59,7 @@ Item {
} }
Wizard { Wizard {
id:wizard
} }
} }

View File

@ -1,4 +1,4 @@
import QtQuick 2.12 import QtQuick 2.12
import QtGraphicalEffects 1.0 import QtGraphicalEffects 1.0
import QtQuick.Controls 2.2 import QtQuick.Controls 2.2
import QtQuick.Controls.Material 2.3 import QtQuick.Controls.Material 2.3
@ -14,6 +14,12 @@ Item {
anchors.fill: parent anchors.fill: parent
state: "out" state: "out"
function setSource(path, arguments){
loader_wrapperContent.setSource(
"qrc:/qml/Create/Wizards/CreateWallpaper/CreateWallpaperVideoImportConvert.qml",
arguments)
}
Component.onCompleted: { Component.onCompleted: {
state = "in" state = "in"
} }