summaryrefslogtreecommitdiffstats
path: root/src/render/io
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/io')
-rw-r--r--src/render/io/io.pri2
-rw-r--r--src/render/io/qgeometryloaderinterface_p.h8
-rw-r--r--src/render/io/qurlhelper.cpp68
-rw-r--r--src/render/io/qurlhelper_p.h71
4 files changed, 5 insertions, 144 deletions
diff --git a/src/render/io/io.pri b/src/render/io/io.pri
index 6a48ebbc4..f01b11ce5 100644
--- a/src/render/io/io.pri
+++ b/src/render/io/io.pri
@@ -4,7 +4,6 @@ HEADERS += \
$$PWD/qaxisalignedboundingbox_p.h \
$$PWD/qsceneloader.h \
$$PWD/qsceneloader_p.h \
- $$PWD/qurlhelper_p.h \
$$PWD/scene_p.h \
$$PWD/scenemanager_p.h \
$$PWD/qsceneimporter_p.h \
@@ -19,7 +18,6 @@ HEADERS += \
SOURCES += \
$$PWD/qaxisalignedboundingbox.cpp \
$$PWD/qsceneloader.cpp \
- $$PWD/qurlhelper.cpp \
$$PWD/scene.cpp \
$$PWD/scenemanager.cpp \
$$PWD/qsceneimporter.cpp \
diff --git a/src/render/io/qgeometryloaderinterface_p.h b/src/render/io/qgeometryloaderinterface_p.h
index 36928445f..f264cc6b2 100644
--- a/src/render/io/qgeometryloaderinterface_p.h
+++ b/src/render/io/qgeometryloaderinterface_p.h
@@ -59,14 +59,16 @@ QT_BEGIN_NAMESPACE
class QIODevice;
-namespace Qt3DRender {
-
+namespace Qt3DCore {
class QGeometry;
+}
+
+namespace Qt3DRender {
class Q_3DRENDERSHARED_PRIVATE_EXPORT QGeometryLoaderInterface : public QObject
{
public:
- virtual QGeometry *geometry() const = 0;
+ virtual Qt3DCore::QGeometry *geometry() const = 0;
virtual bool load(QIODevice *ioDev, const QString &subMesh = QString()) = 0;
};
diff --git a/src/render/io/qurlhelper.cpp b/src/render/io/qurlhelper.cpp
deleted file mode 100644
index f55a547fb..000000000
--- a/src/render/io/qurlhelper.cpp
+++ /dev/null
@@ -1,68 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** 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 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 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.LGPL3 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-3.0.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 (at your option) the GNU General
-** Public license version 3 or 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.GPL2 and 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-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include "qurlhelper_p.h"
-
-QT_BEGIN_NAMESPACE
-
-namespace Qt3DRender {
-
-QString QUrlHelper::urlToLocalFileOrQrc(const QUrl &url)
-{
- const QString scheme(url.scheme().toLower());
- if (scheme == QLatin1String("qrc")) {
- if (url.authority().isEmpty())
- return QLatin1Char(':') + url.path();
- return QString();
- }
-
-#if defined(Q_OS_ANDROID)
- if (scheme == QLatin1String("assets")) {
- if (url.authority().isEmpty())
- return url.toString();
- return QString();
- }
-#endif
-
- return url.toLocalFile();
-}
-
-} // Qt3DRender
-
-QT_END_NAMESPACE
diff --git a/src/render/io/qurlhelper_p.h b/src/render/io/qurlhelper_p.h
deleted file mode 100644
index d816d5d31..000000000
--- a/src/render/io/qurlhelper_p.h
+++ /dev/null
@@ -1,71 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** 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 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 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.LGPL3 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-3.0.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 (at your option) the GNU General
-** Public license version 3 or 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.GPL2 and 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-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef QT3DRENDER_QURLHELPER_P_H
-#define QT3DRENDER_QURLHELPER_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists for the convenience
-// of other Qt classes. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <Qt3DRender/qt3drender_global.h>
-#include <QUrl>
-
-QT_BEGIN_NAMESPACE
-
-namespace Qt3DRender {
-
-class Q_3DRENDERSHARED_EXPORT QUrlHelper
-{
-public:
- static QString urlToLocalFileOrQrc(const QUrl &url);
-};
-
-} // Qt3DRender
-
-QT_END_NAMESPACE
-
-#endif // QT3DRENDER_QURLHELPER_P_H