mirror of https://github.com/qt/qt3d.git
Include what you need: qquaternion.h
qmatrix4x4.h will lose its qquaternion.h include, so include qquaternion.h explicitly in all files that mention 'QQuaternion', unless, for a foo.cpp, the own foo.h has already included it. Picking all the way back, even though the include removal won't be picked as far back, because it's the correct thing to do and cannot fail. Pick-to: 6.10 6.9 6.8 6.5 Change-Id: I417307626f61b47f694b18424f8c2941f7b8a31c Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
parent
441b4bcec1
commit
c172b40ac6
|
@ -2,7 +2,11 @@
|
|||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
#include "scenemodifier.h"
|
||||
|
||||
#include <Qt3DRender/QGeometryRenderer>
|
||||
|
||||
#include <QtGui/QQuaternion>
|
||||
|
||||
#include <QtCore/QDebug>
|
||||
|
||||
SceneModifier::SceneModifier(Qt3DCore::QEntity *rootEntity)
|
||||
|
|
|
@ -18,6 +18,8 @@
|
|||
#include <Qt3DExtras/QSphereMesh>
|
||||
#include <Qt3DExtras/QTorusMesh>
|
||||
|
||||
#include <QtGui/QQuaternion>
|
||||
|
||||
#include <QPropertyAnimation>
|
||||
|
||||
#include "qt3dwindow.h"
|
||||
|
|
|
@ -16,8 +16,11 @@
|
|||
//
|
||||
|
||||
#include <Qt3DAnimation/private/backendnode_p.h>
|
||||
|
||||
#include <Qt3DCore/private/sqt_p.h>
|
||||
|
||||
#include <QtGui/qquaternion.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
namespace Qt3DAnimation {
|
||||
|
|
|
@ -19,6 +19,8 @@
|
|||
#include <Qt3DAnimation/qkeyframeanimation.h>
|
||||
#include <private/qabstractanimation_p.h>
|
||||
|
||||
#include <QtGui/qquaternion.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
namespace Qt3DAnimation {
|
||||
|
|
|
@ -25,7 +25,9 @@
|
|||
#include <Qt3DAnimation/qkeyframeanimation.h>
|
||||
#include <Qt3DAnimation/qmorphinganimation.h>
|
||||
#include <QtCore/QFileInfo>
|
||||
|
||||
#include <QtGui/QColor>
|
||||
#include <QtGui/qquaternion.h>
|
||||
|
||||
#include <qmath.h>
|
||||
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
#include <QtCore/qjsonobject.h>
|
||||
#include <QtCore/qmath.h>
|
||||
|
||||
#include <QtGui/qquaternion.h>
|
||||
#include <QtGui/qvector2d.h>
|
||||
|
||||
#include <Qt3DCore/qentity.h>
|
||||
|
|
|
@ -34,6 +34,8 @@
|
|||
#include <QtCore/QFileInfo>
|
||||
#include <QtCore/QJsonArray>
|
||||
#include <QtCore/QJsonObject>
|
||||
|
||||
#include <QtGui/qquaternion.h>
|
||||
#include <QtGui/QVector2D>
|
||||
|
||||
#include "gltfio.h"
|
||||
|
|
|
@ -26,6 +26,8 @@
|
|||
|
||||
#include <QtQml/qqml.h>
|
||||
|
||||
#include <QtGui/qquaternion.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
extern void qml_register_types_Qt3D_Core();
|
||||
|
|
|
@ -17,6 +17,8 @@
|
|||
#include <Qt3DCore/private/qmath3d_p.h>
|
||||
#include <Qt3DCore/private/qloadgltf_p.h>
|
||||
|
||||
#include <QtGui/qquaternion.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
using namespace Qt3DCore;
|
||||
|
|
|
@ -19,6 +19,8 @@
|
|||
#include <Qt3DCore/private/sqt_p.h>
|
||||
#include <Qt3DRender/private/handle_types_p.h>
|
||||
|
||||
#include <QtGui/qquaternion.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
namespace Qt3DRender {
|
||||
|
|
|
@ -6,6 +6,8 @@
|
|||
#include <qobject.h>
|
||||
#include <qsignalspy.h>
|
||||
|
||||
#include <QtGui/qquaternion.h>
|
||||
|
||||
class tst_QKeyframeAnimation : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
|
|
@ -11,6 +11,8 @@
|
|||
#include <qbackendnodetester.h>
|
||||
#include <testarbiter.h>
|
||||
|
||||
#include <QtGui/qquaternion.h>
|
||||
|
||||
using namespace Qt3DCore;
|
||||
using namespace Qt3DAnimation;
|
||||
using namespace Qt3DAnimation::Animation;
|
||||
|
|
|
@ -8,6 +8,8 @@
|
|||
#include <QSignalSpy>
|
||||
#include <testarbiter.h>
|
||||
|
||||
#include <QtGui/qquaternion.h>
|
||||
|
||||
using namespace Qt3DCore;
|
||||
|
||||
class tst_QJoint : public QObject
|
||||
|
|
|
@ -7,7 +7,11 @@
|
|||
#include <Qt3DCore/qtransform.h>
|
||||
#include <Qt3DCore/qcomponent.h>
|
||||
#include <Qt3DCore/private/qtransform_p.h>
|
||||
|
||||
#include <QtGui/qquaternion.h>
|
||||
|
||||
#include <QtCore/qscopedpointer.h>
|
||||
|
||||
#include "testarbiter.h"
|
||||
|
||||
using namespace Qt3DCore;
|
||||
|
|
|
@ -24,6 +24,8 @@
|
|||
#include <Qt3DExtras/QSphereMesh>
|
||||
#include <Qt3DExtras/QTorusMesh>
|
||||
|
||||
#include <QtGui/qquaternion.h>
|
||||
|
||||
#include <QPropertyAnimation>
|
||||
#include <QThread>
|
||||
|
||||
|
|
|
@ -15,6 +15,8 @@
|
|||
#include <Qt3DExtras/qt3dwindow.h>
|
||||
#include <Qt3DExtras/qorbitcameracontroller.h>
|
||||
|
||||
#include <QtGui/qquaternion.h>
|
||||
|
||||
#include <QTimer>
|
||||
|
||||
class ComponentSwapper : public QObject
|
||||
|
|
|
@ -24,6 +24,8 @@
|
|||
#include <Qt3DExtras/qt3dwindow.h>
|
||||
#include <Qt3DExtras/qorbitcameracontroller.h>
|
||||
|
||||
#include <QtGui/qquaternion.h>
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
QGuiApplication app(argc, argv);
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
#include <Qt3DCore/QTransform>
|
||||
#include <Qt3DExtras/QPlaneMesh>
|
||||
|
||||
#include <QtGui/qquaternion.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
ScreenQuadEntity::ScreenQuadEntity(Qt3DCore::QNode *parent)
|
||||
|
|
|
@ -22,6 +22,8 @@
|
|||
#include <Qt3DExtras/QForwardRenderer>
|
||||
#include <Qt3DExtras/qfirstpersoncameracontroller.h>
|
||||
|
||||
#include <QtGui/qquaternion.h>
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
QGuiApplication app(argc, argv);
|
||||
|
|
|
@ -8,6 +8,8 @@
|
|||
#include <QtCore/QDateTime>
|
||||
|
||||
#include <QtGui/QPainter>
|
||||
#include <QtGui/qquaternion.h>
|
||||
|
||||
#include <Qt3DRender/QPaintedTextureImage>
|
||||
#include <Qt3DRender/QTexture>
|
||||
#include <Qt3DRender/QGeometryRenderer>
|
||||
|
|
|
@ -30,6 +30,8 @@
|
|||
#include <Qt3DRender/QLayer>
|
||||
#include <Qt3DRender/QLayerFilter>
|
||||
|
||||
#include <QtGui/qquaternion.h>
|
||||
|
||||
using namespace Qt3DRender;
|
||||
|
||||
int main(int argc, char **argv)
|
||||
|
|
|
@ -27,6 +27,8 @@
|
|||
#include <Qt3DExtras/qt3dwindow.h>
|
||||
#include <Qt3DExtras/qorbitcameracontroller.h>
|
||||
|
||||
#include <QtGui/qquaternion.h>
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
QGuiApplication app(argc, argv);
|
||||
|
|
|
@ -29,6 +29,8 @@
|
|||
#include "qfirstpersoncameracontroller.h"
|
||||
#include "planematerial.h"
|
||||
|
||||
#include <QtGui/qquaternion.h>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QGuiApplication app(argc, argv);
|
||||
|
|
|
@ -28,6 +28,8 @@
|
|||
#include "qorbitcameracontroller.h"
|
||||
#include "mycapture.h"
|
||||
|
||||
#include <QtGui/qquaternion.h>
|
||||
|
||||
Qt3DCore::QEntity *createScene()
|
||||
{
|
||||
// Root entity
|
||||
|
|
|
@ -42,6 +42,8 @@
|
|||
#include "orbittransformcontroller.h"
|
||||
#include "qorbitcameracontroller.h"
|
||||
|
||||
#include <QtGui/qquaternion.h>
|
||||
|
||||
class Renderer : public Qt3DRender::QRenderSurfaceSelector
|
||||
{
|
||||
public:
|
||||
|
|
|
@ -11,6 +11,9 @@
|
|||
#include <Qt3DExtras/QDiffuseMapMaterial>
|
||||
#include <Qt3DRender/QGeometryRenderer>
|
||||
#include <Qt3DRender/QTextureDataUpdate>
|
||||
|
||||
#include <QtGui/qquaternion.h>
|
||||
|
||||
#include <cstring>
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue