diff options
author | Paul Lemire <paul.lemire.ecortex.kdab.com> | 2014-10-29 08:42:37 +0100 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2014-11-02 12:43:13 +0100 |
commit | f7e6874cb200c31eed32c69c6ef10ba92ed1250e (patch) | |
tree | 4b553a76d57ae88308d7243a326c0b55d748c358 /src/quick3d/imports/input/qt3dquick3dinputplugin.cpp | |
parent | d03d7691c3bd5894e856a78cf7004990222efcae (diff) |
Added Quick3D Inputs import plugin
Change-Id: I1d85420884a60704b8f3e8086aba7241c9e9936b
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/quick3d/imports/input/qt3dquick3dinputplugin.cpp')
-rw-r--r-- | src/quick3d/imports/input/qt3dquick3dinputplugin.cpp | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/src/quick3d/imports/input/qt3dquick3dinputplugin.cpp b/src/quick3d/imports/input/qt3dquick3dinputplugin.cpp new file mode 100644 index 000000000..a5bb31230 --- /dev/null +++ b/src/quick3d/imports/input/qt3dquick3dinputplugin.cpp @@ -0,0 +1,56 @@ +/**************************************************************************** +** +** Copyright (C) 2014 Klaralvdalens Datakonsult AB (KDAB). +** Contact: http://www.qt-project.org/legal +** +** This file is part of the Qt3D 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 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Digia gives you certain additional +** rights. These rights are described in the Digia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** GNU General Public License Usage +** Alternatively, this file may be used under the terms of the GNU +** General Public License version 3.0 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 3.0 requirements will be +** met: http://www.gnu.org/copyleft/gpl.html. +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#include <QtQml> +#include <Qt3DInput/qkeyboardcontroller.h> +#include <Qt3DInput/qkeyboardinput.h> + +#include "qt3dquick3dinputplugin.h" + +QT_BEGIN_NAMESPACE + +void Qt3DQuick3DInputPlugin::registerTypes(const char *uri) +{ + qmlRegisterType<Qt3D::QKeyboardController>(uri, 2, 0, "KeyboardController"); + qmlRegisterType<Qt3D::QKeyboardInput>(uri, 2, 0, "KeyboardInput"); +} + +QT_END_NAMESPACE |