1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-07 03:22:33 +01:00
ScreenPlay/ScreenPlayWorkshop/qml/Workshop.qml

30 lines
674 B
QML
Raw Normal View History

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) {
2023-02-02 15:25:26 +01:00
workshopLoader.setSource("qrc:/qml/ScreenPlayApp/qml/Workshop/SteamWorkshop.qml", {
"modalSource": modalSource
});
} else {
2023-02-02 15:25:26 +01:00
workshopLoader.setSource("qrc:/qml/ScreenPlayApp/qml/Workshop/Forum.qml");
}
}
Loader {
id: workshopLoader
asynchronous: true
anchors.fill: parent
}
}