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
|
2020-08-20 16:09:05 +02:00
|
|
|
|
|
|
|
|
import QtQuick 2.15
|
2021-06-21 16:48:19 +02:00
|
|
|
import QtQuick.Layouts 1.15
|
2020-08-20 16:09:05 +02:00
|
|
|
import QtQuickDesignerTheme 1.0
|
|
|
|
|
import HelperWidgets 2.0
|
|
|
|
|
import StudioTheme 1.0 as StudioTheme
|
|
|
|
|
|
2021-08-03 22:16:15 +02:00
|
|
|
PropertyEditorPane {
|
2020-08-20 16:09:05 +02:00
|
|
|
id: itemPane
|
|
|
|
|
|
2021-10-21 13:10:24 +02:00
|
|
|
ComponentSection {
|
2022-06-08 14:58:28 +02:00
|
|
|
showState: majorQtQuickVersion >= 6
|
2021-10-21 13:10:24 +02:00
|
|
|
}
|
2020-08-20 16:09:05 +02:00
|
|
|
|
2021-08-03 22:16:15 +02:00
|
|
|
Column {
|
|
|
|
|
anchors.left: parent.left
|
|
|
|
|
anchors.right: parent.right
|
2021-06-21 16:48:19 +02:00
|
|
|
|
2022-07-22 16:46:48 +02:00
|
|
|
DynamicPropertiesSection {
|
|
|
|
|
propertiesModel: SelectionDynamicPropertiesModel {}
|
2022-09-16 17:19:02 +02:00
|
|
|
visible: !hasMultiSelection
|
2022-07-22 16:46:48 +02:00
|
|
|
}
|
|
|
|
|
|
2021-08-03 22:16:15 +02:00
|
|
|
Loader {
|
|
|
|
|
id: specificsTwo
|
|
|
|
|
anchors.left: parent.left
|
|
|
|
|
anchors.right: parent.right
|
|
|
|
|
visible: theSource !== ""
|
|
|
|
|
sourceComponent: specificQmlComponent
|
2020-08-20 16:09:05 +02:00
|
|
|
|
2021-08-03 22:16:15 +02:00
|
|
|
property string theSource: specificQmlData
|
2020-08-20 16:09:05 +02:00
|
|
|
|
2021-08-03 22:16:15 +02:00
|
|
|
onTheSourceChanged: {
|
|
|
|
|
active = false
|
|
|
|
|
active = true
|
2020-08-20 16:09:05 +02:00
|
|
|
}
|
|
|
|
|
}
|
2021-08-03 22:16:15 +02:00
|
|
|
|
|
|
|
|
Loader {
|
|
|
|
|
id: specificsOne
|
|
|
|
|
anchors.left: parent.left
|
|
|
|
|
anchors.right: parent.right
|
|
|
|
|
source: specificsUrl
|
|
|
|
|
}
|
2020-08-20 16:09:05 +02:00
|
|
|
}
|
|
|
|
|
}
|