summaryrefslogtreecommitdiffstats
path: root/src/Viewer/studio3d/q3dspresentation.cpp
diff options
context:
space:
mode:
authorJanne Kangas <janne.kangas@qt.io>2019-03-21 13:38:12 +0200
committerJanne Kangas <janne.kangas@qt.io>2019-05-09 04:15:14 +0000
commit9859c764ea019fbe0e78a563c556afdc6cde7666 (patch)
treee876a8e804848d198d0fa339a0863de53c9d1ca2 /src/Viewer/studio3d/q3dspresentation.cpp
parentf699744899fa6d149b21ab4412a2588854ae8dbc (diff)
Remove circular build dependencywip/qtify
Duplicate enum defined in studio3d module on runtime side to avoid including the entire class from studio3d. Task-id: QT3DS-3396 Change-Id: I193b34614a8bbf991f717f8302061298b56e451e Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'src/Viewer/studio3d/q3dspresentation.cpp')
-rw-r--r--src/Viewer/studio3d/q3dspresentation.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Viewer/studio3d/q3dspresentation.cpp b/src/Viewer/studio3d/q3dspresentation.cpp
index e1ef5e1e..6884e0ee 100644
--- a/src/Viewer/studio3d/q3dspresentation.cpp
+++ b/src/Viewer/studio3d/q3dspresentation.cpp
@@ -267,7 +267,8 @@ void Q3DSPresentation::setDataInputValue(const QString &name, const QVariant &va
Q3DSDataInput::ValueRole valueRole)
{
if (d_ptr->m_viewerApp) {
- d_ptr->m_viewerApp->SetDataInputValue(name, value, valueRole);
+ d_ptr->m_viewerApp->SetDataInputValue(name, value,
+ (qt3ds::runtime::DataInputValueRole)valueRole);
} else if (d_ptr->m_commandQueue) {
d_ptr->m_commandQueue->queueCommand(QString(), CommandType_SetDataInputValue,
name, value, static_cast<int>(valueRole));