summaryrefslogtreecommitdiffstats
path: root/src/dm/systems
diff options
context:
space:
mode:
authorAntti Määttä <antti.maatta@qt.io>2019-10-07 09:36:13 +0300
committerAntti Määttä <antti.maatta@qt.io>2019-10-07 11:00:24 +0300
commitda8d2d55ccc3edd28ef3e77de46dae255282a46b (patch)
tree39dac8f97de6c531ad849165dcd7b208c750e5fc /src/dm/systems
parent0582de9c1063ec5d83f3ee931925e1d8a276d3b6 (diff)
Use logging categories with all debug messages
Task-number: QT3DS-3712 Change-Id: Ibb751d2ad462685f0ba39cef6a4d932708faac57 Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Diffstat (limited to 'src/dm/systems')
-rw-r--r--src/dm/systems/Qt3DSDMValue.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/dm/systems/Qt3DSDMValue.cpp b/src/dm/systems/Qt3DSDMValue.cpp
index 57ba400..48267c8 100644
--- a/src/dm/systems/Qt3DSDMValue.cpp
+++ b/src/dm/systems/Qt3DSDMValue.cpp
@@ -28,6 +28,7 @@
****************************************************************************/
#include "Qt3DSDMPrefix.h"
#include "Qt3DSDMValue.h"
+#include "foundation/Qt3DSLogging.h"
#include <QtGui/qcolor.h>
#include <QtCore/qdebug.h>
@@ -91,7 +92,7 @@ SValue::SValue(const QVariant &inData)
break;
}
default:
- qDebug() << "Add a handler for QVariant::type" << inData.type();
+ qCWarning(qt3ds::WARNING) << "Add a handler for QVariant::type" << inData.type();
throw std::runtime_error("Cannot transform this QVariant into SValue");
}
}
@@ -124,7 +125,7 @@ QVariant SValue::toQVariant() const
}
case DataModelDataType::FloatList: {
//KDAB_TODO
- qDebug() << "Add a handler for type DataModelDataType::FloatList";
+ qCWarning(qt3ds::WARNING) << "Add a handler for type DataModelDataType::FloatList";
return {};
}
case DataModelDataType::Long4: {
@@ -135,13 +136,10 @@ QVariant SValue::toQVariant() const
switch (theRef.GetReferenceType()) {
case ObjectReferenceType::Absolute:
return SValue(get<SLong4>(theRef.m_Value)).toQVariant();
- break;
case ObjectReferenceType::Relative:
return SValue(get<TDataStrPtr>(theRef.m_Value)).toQVariant();
- break;
case ObjectReferenceType::Unknown:
return QVariant::fromValue(QVector<qt3ds::QT3DSU32>());
- break;
}
}
case DataModelDataType::StringOrInt: {