2022-04-23 14:32:36 +02:00
|
|
|
import QtQuick
|
|
|
|
import QtQuick.Controls
|
|
|
|
import QtQuick.Controls.Material
|
|
|
|
import Qt5Compat.GraphicalEffects
|
|
|
|
import QtQuick.Layouts
|
2024-03-01 09:20:11 +01:00
|
|
|
import ScreenPlayApp
|
2024-01-12 16:10:34 +01:00
|
|
|
|
2022-04-23 14:32:36 +02:00
|
|
|
Item {
|
|
|
|
id: root
|
|
|
|
|
|
|
|
property Item modalSource
|
|
|
|
|
|
|
|
Component.onCompleted: {
|
2024-03-01 09:20:11 +01:00
|
|
|
if (App.globalVariables.isSteamVersion()) {
|
2023-02-02 15:25:26 +01:00
|
|
|
workshopLoader.setSource("qrc:/qml/ScreenPlayApp/qml/Workshop/SteamWorkshop.qml", {
|
2024-05-25 15:36:24 +02:00
|
|
|
"modalSource": modalSource
|
|
|
|
});
|
2022-04-23 14:32:36 +02:00
|
|
|
} else {
|
2023-02-02 15:25:26 +01:00
|
|
|
workshopLoader.setSource("qrc:/qml/ScreenPlayApp/qml/Workshop/Forum.qml");
|
2022-04-23 14:32:36 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Loader {
|
|
|
|
id: workshopLoader
|
|
|
|
asynchronous: true
|
|
|
|
anchors.fill: parent
|
|
|
|
}
|
|
|
|
}
|