1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-09 20:42:47 +01:00
ScreenPlay/ScreenPlayWorkshop/qml/Workshop.qml
Elias Steurer 12b6911635 Merge and adapt change to make it runnable on linux
Move all qml components into a dedicated qml subfolder.  This was needed to fix linker
errors where we would have a folder that has the same name as our executable.
2022-04-30 12:07:54 +02:00

31 lines
713 B
QML

import QtQuick
import QtQuick.Controls
import QtQuick.Controls.Material
import Qt5Compat.GraphicalEffects
import QtQuick.Layouts
import Settings
import ScreenPlay
Item {
id: root
property Item modalSource
Component.onCompleted: {
if (App.settings.steamVersion) {
workshopLoader.setSource(
"qrc:/qml/ScreenPlayApp/qml/Workshop/SteamWorkshop.qml", {
"modalSource": modalSource
})
} else {
workshopLoader.setSource("qrc:/qml/ScreenPlayApp/qml/Workshop/Forum.qml")
}
}
Loader {
id: workshopLoader
asynchronous: true
anchors.fill: parent
}
}