2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2021 The Qt Company Ltd.
|
2023-01-04 08:52:22 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2013-10-31 12:49:41 +01:00
|
|
|
|
2020-07-03 16:17:54 +02:00
|
|
|
import QtQuick 2.15
|
2021-06-21 16:48:19 +02:00
|
|
|
import QtQuick.Layouts 1.15
|
2017-03-07 16:06:02 +01:00
|
|
|
import QtQuickDesignerTheme 1.0
|
2020-07-03 16:17:54 +02:00
|
|
|
import HelperWidgets 2.0
|
2020-07-14 12:47:18 +02:00
|
|
|
import StudioTheme 1.0 as StudioTheme
|
2013-10-31 12:49:41 +01:00
|
|
|
|
2021-08-03 22:16:15 +02:00
|
|
|
PropertyEditorPane {
|
2013-10-31 12:49:41 +01:00
|
|
|
id: itemPane
|
|
|
|
|
|
2021-08-03 22:16:15 +02:00
|
|
|
ComponentSection {}
|
2021-06-21 16:48:19 +02:00
|
|
|
|
2021-08-03 22:16:15 +02:00
|
|
|
Column {
|
|
|
|
|
anchors.left: parent.left
|
|
|
|
|
anchors.right: parent.right
|
2020-07-16 13:01:41 +02:00
|
|
|
|
2021-08-03 22:16:15 +02:00
|
|
|
Loader {
|
|
|
|
|
id: specificsTwo
|
2013-10-31 12:49:41 +01:00
|
|
|
|
2021-08-03 22:16:15 +02:00
|
|
|
property string theSource: specificQmlData
|
2020-07-03 16:17:54 +02:00
|
|
|
|
2021-08-03 22:16:15 +02:00
|
|
|
anchors.left: parent.left
|
|
|
|
|
anchors.right: parent.right
|
|
|
|
|
visible: specificsTwo.theSource !== ""
|
|
|
|
|
sourceComponent: specificQmlComponent
|
2020-07-03 16:17:54 +02:00
|
|
|
|
2021-08-03 22:16:15 +02:00
|
|
|
onTheSourceChanged: {
|
|
|
|
|
specificsTwo.active = false
|
|
|
|
|
specificsTwo.active = true
|
2013-10-31 12:49:41 +01:00
|
|
|
}
|
|
|
|
|
}
|
2021-08-03 22:16:15 +02:00
|
|
|
|
|
|
|
|
Loader {
|
|
|
|
|
id: specificsOne
|
|
|
|
|
anchors.left: parent.left
|
|
|
|
|
anchors.right: parent.right
|
|
|
|
|
source: specificsUrl
|
|
|
|
|
}
|
2013-10-31 12:49:41 +01:00
|
|
|
}
|
|
|
|
|
}
|