diff options
author | Thomas Hartmann <thomas.hartmann@qt.io> | 2018-09-11 09:36:28 +0200 |
---|---|---|
committer | Tim Jenssen <tim.jenssen@qt.io> | 2018-09-12 09:45:43 +0000 |
commit | f9fe63833282f1fd08d5d76232862b15dc1a1b39 (patch) | |
tree | 641dec23009ec713d48f9405a7b6881def4f9d5f | |
parent | f9ddec6110281cf69bc4c9baa831b54243fdf68a (diff) |
Add meta data for Qt Quick Designer
* Populating the item library
* Adding custom property editor
Change-Id: I131ea0f8e0961bd982f27f96f234840029bda022
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
-rw-r--r-- | src/imports/studio3d/designer/PresentationSpecifics.qml | 60 | ||||
-rw-r--r-- | src/imports/studio3d/designer/designer.pri | 4 | ||||
-rw-r--r-- | src/imports/studio3d/designer/qt3ditem.qml | 39 | ||||
-rw-r--r-- | src/imports/studio3d/designer/studio3d.metainfo | 16 | ||||
-rw-r--r-- | src/imports/studio3d/studio3d.pro | 2 |
5 files changed, 121 insertions, 0 deletions
diff --git a/src/imports/studio3d/designer/PresentationSpecifics.qml b/src/imports/studio3d/designer/PresentationSpecifics.qml new file mode 100644 index 0000000..0f6aa74 --- /dev/null +++ b/src/imports/studio3d/designer/PresentationSpecifics.qml @@ -0,0 +1,60 @@ +/**************************************************************************** +** +** Copyright (C) 2018 The Qt Company Ltd. +** Contact: http://www.qt.io/licensing/ +** +** This file is part of Qt 3D Studio. +** +** $QT_BEGIN_LICENSE:GPL$ +** Commercial License Usage +** Licensees holding valid commercial Qt licenses may use this file in +** accordance with the commercial license agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and The Qt Company. For licensing terms +** and conditions see https://www.qt.io/terms-conditions. For further +** information use the contact form at https://www.qt.io/contact-us. +** +** GNU General Public License Usage +** Alternatively, this file may be used under the terms of the GNU +** General Public License version 3 or (at your option) any later version +** approved by the KDE Free Qt Foundation. The licenses are as published by +** the Free Software Foundation and appearing in the file LICENSE.GPL3 +** included in the packaging of this file. Please review the following +** information to ensure the GNU General Public License requirements will +** be met: https://www.gnu.org/licenses/gpl-3.0.html. +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +import QtQuick 2.0 +import HelperWidgets 2.0 +import QtQuick.Layouts 1.0 + +Column { + anchors.left: parent.left + anchors.right: parent.right + + Section { + anchors.left: parent.left + anchors.right: parent.right + caption: qsTr("Presentation") + + SectionLayout { + Label { + text: qsTr("Source") + } + + SecondColumnLayout { + UrlChooser { + Layout.fillWidth: true + backendValue: backendValues.source + } + + ExpandingSpacer { + + } + } + } + } +} diff --git a/src/imports/studio3d/designer/designer.pri b/src/imports/studio3d/designer/designer.pri new file mode 100644 index 0000000..0f140e9 --- /dev/null +++ b/src/imports/studio3d/designer/designer.pri @@ -0,0 +1,4 @@ +OTHER_FILES += \ + qt3ditem.qml \ + PresentationSpecifics.qml \ + studio3d.metainfo diff --git a/src/imports/studio3d/designer/qt3ditem.qml b/src/imports/studio3d/designer/qt3ditem.qml new file mode 100644 index 0000000..397413c --- /dev/null +++ b/src/imports/studio3d/designer/qt3ditem.qml @@ -0,0 +1,39 @@ +/**************************************************************************** +** +** Copyright (C) 2018 The Qt Company Ltd. +** Contact: http://www.qt.io/licensing/ +** +** This file is part of Qt 3D Studio. +** +** $QT_BEGIN_LICENSE:GPL$ +** Commercial License Usage +** Licensees holding valid commercial Qt licenses may use this file in +** accordance with the commercial license agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and The Qt Company. For licensing terms +** and conditions see https://www.qt.io/terms-conditions. For further +** information use the contact form at https://www.qt.io/contact-us. +** +** GNU General Public License Usage +** Alternatively, this file may be used under the terms of the GNU +** General Public License version 3 or (at your option) any later version +** approved by the KDE Free Qt Foundation. The licenses are as published by +** the Free Software Foundation and appearing in the file LICENSE.GPL3 +** included in the packaging of this file. Please review the following +** information to ensure the GNU General Public License requirements will +** be met: https://www.gnu.org/licenses/gpl-3.0.html. +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +import QtQuick 2.0 +import QtStudio3D 2.0 + +Studio3D { + width: 300 + height: 300 + + Presentation { + } +} diff --git a/src/imports/studio3d/designer/studio3d.metainfo b/src/imports/studio3d/designer/studio3d.metainfo new file mode 100644 index 0000000..fac71ad --- /dev/null +++ b/src/imports/studio3d/designer/studio3d.metainfo @@ -0,0 +1,16 @@ +MetaInfo { + Type { + name: "QtStudio3D.Studio3D" + icon: ":/qtquickplugin/images/item-icon16.png" + + ItemLibraryEntry { + name: "Area" + category: "Qt 3D Studio" + libraryIcon: ":/qtquickplugin/images/item-icon.png" + version: "2.0" + requiredImport: "QtStudio3D" + + QmlSource { source: "qt3ditem.qml" } + } + } +} diff --git a/src/imports/studio3d/studio3d.pro b/src/imports/studio3d/studio3d.pro index 639a71d..316673d 100644 --- a/src/imports/studio3d/studio3d.pro +++ b/src/imports/studio3d/studio3d.pro @@ -5,6 +5,8 @@ IMPORT_VERSION = 2.0 QT += qml quick 3drender-private 3dstudioruntime2-private +include($$PWD/designer/designer.pri) + SOURCES += \ plugin.cpp \ q3dsstudio3ditem.cpp \ |