Commit 7ca0f93d authored by Tomi Korpipää's avatar Tomi Korpipää
Browse files

Designer plugin added


Images are just placeholders for now. Actual ones will be added at some
point.

Change-Id: Iae78d1437f2e900c72091c48b77b0b2437e36452
Reviewed-by: default avatarPasi Keränen <pasi.keranen@digia.com>
Showing with 78 additions and 1 deletion
/****************************************************************************
**
** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the QtCanvas3D module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** 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 Digia. For licensing terms and
** conditions see http://qt.digia.com/licensing. For further information
** use the contact form at http://qt.digia.com/contact-us.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 3 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPLv3 included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 3 requirements
** will be met: https://www.gnu.org/licenses/lgpl.html.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 2.0 or later as published by the Free
** Software Foundation and appearing in the file LICENSE.GPL included in
** the packaging of this file. Please review the following information to
** ensure the GNU General Public License version 2.0 requirements will be
** met: http://www.gnu.org/licenses/gpl-2.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.0
import QtCanvas3D 1.0
Canvas3D {
id: canvas3d
anchors.fill: parent
logAllCalls: false
logAllErrors: false
imageLoader: TextureImageLoader {
}
}
QML_FILES += \
$$PWD/default/Canvas3D.qml
QML_FILES += $$PWD/qtcanvas3d.metainfo
# Images
QML_FILES += \
$$PWD/images/canvas3d-icon.png \
$$PWD/images/canvas3d-icon16.png
src/designer/images/canvas3d-icon.png

112 Bytes

src/designer/images/canvas3d-icon16.png

103 Bytes

MetaInfo {
Type {
name: "QtCanvas3D.Canvas3D"
icon: "images/canvas3d-icon16.png"
ItemLibraryEntry {
name: "Canvas3D"
category: "Qt Canvas 3D"
libraryIcon: "images/canvas3d-icon.png"
version: "1.0"
requiredImport: "QtCanvas3D"
QmlSource { source: "default/Canvas3D.qml" }
}
}
}
...@@ -10,6 +10,8 @@ IMPORT_VERSION = $$MODULE_VERSION ...@@ -10,6 +10,8 @@ IMPORT_VERSION = $$MODULE_VERSION
# Only build qml plugin static if Qt itself is also built static # Only build qml plugin static if Qt itself is also built static
!contains(QT_CONFIG, static): CONFIG -= static staticlib !contains(QT_CONFIG, static): CONFIG -= static staticlib
include($$PWD/designer/designer.pri)
QMAKE_DOCS = $$PWD/doc/qtcanvas3d.qdocconf QMAKE_DOCS = $$PWD/doc/qtcanvas3d.qdocconf
SOURCES += qcanvas3d_plugin.cpp \ SOURCES += qcanvas3d_plugin.cpp \
...@@ -86,7 +88,9 @@ OTHER_FILES = qmldir \ ...@@ -86,7 +88,9 @@ OTHER_FILES = qmldir \
doc/src/* \ doc/src/* \
doc/images/* \ doc/images/* \
doc/snippets/* \ doc/snippets/* \
plugins.qmltypes plugins.qmltypes \
designer/* \
designer/default/*
CONFIG += no_cxx_module CONFIG += no_cxx_module
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment