Add qml/BootLoader.qml
This commit is contained in:
parent
510d965eb1
commit
83f0707753
25
qml/BootLoader.qml
Normal file
25
qml/BootLoader.qml
Normal file
@ -0,0 +1,25 @@
|
||||
// BootLoader.qml
|
||||
import QtQuick
|
||||
import XMB 1.0
|
||||
|
||||
Item {
|
||||
id: bl
|
||||
signal finished()
|
||||
|
||||
Loader {
|
||||
id: loader
|
||||
anchors.fill: parent
|
||||
source: XmbModel.bootQml()
|
||||
onLoaded: {
|
||||
if (item && item.finished) item.finished.connect(bl.finished)
|
||||
}
|
||||
}
|
||||
|
||||
// Safety: falls Boot-QML kein finished sendet
|
||||
Timer {
|
||||
interval: 2200
|
||||
running: true
|
||||
repeat: false
|
||||
onTriggered: bl.finished()
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user