forked from qt-creator/qt-creator
Task-number: QDS-11177 Change-Id: I94a537af1d55d503aa04dd79c6194ef1a0647e83 Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io> Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
68 lines
1.4 KiB
QML
68 lines
1.4 KiB
QML
// Copyright (C) 2022 The Qt Company Ltd.
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
|
|
|
import QtQuick
|
|
import HelperWidgets
|
|
|
|
PropertyEditorPane {
|
|
id: itemPane
|
|
|
|
width: 420
|
|
height: 420
|
|
|
|
signal toolBarAction(int action)
|
|
|
|
// invoked from C++ to refresh material preview image
|
|
function refreshPreview()
|
|
{
|
|
topSection.refreshPreview()
|
|
}
|
|
|
|
// Called from C++ to close context menu on focus out
|
|
function closeContextMenu()
|
|
{
|
|
Controller.closeContextMenu()
|
|
}
|
|
|
|
TextureEditorTopSection {
|
|
id: topSection
|
|
|
|
onToolBarAction: (action) => itemPane.toolBarAction(action)
|
|
}
|
|
|
|
Item { width: 1; height: 10 }
|
|
|
|
DynamicPropertiesSection {
|
|
propertiesModel: TextureEditorDynamicPropertiesModel {}
|
|
}
|
|
|
|
Loader {
|
|
id: specificsTwo
|
|
|
|
property string theSource: specificQmlData
|
|
|
|
anchors.left: parent.left
|
|
anchors.right: parent.right
|
|
visible: specificsTwo.theSource !== ""
|
|
sourceComponent: specificQmlComponent
|
|
|
|
onTheSourceChanged: {
|
|
specificsTwo.active = false
|
|
specificsTwo.active = true
|
|
}
|
|
}
|
|
|
|
Item {
|
|
width: 1
|
|
height: 10
|
|
visible: specificsTwo.visible
|
|
}
|
|
|
|
Loader {
|
|
id: specificsOne
|
|
anchors.left: parent.left
|
|
anchors.right: parent.right
|
|
source: specificsUrl
|
|
}
|
|
}
|