summaryrefslogtreecommitdiffstats
path: root/src/Authoring/Client/Code/Core/Core
diff options
context:
space:
mode:
authorJanne Kangas <janne.kangas@qt.io>2018-05-15 11:49:01 +0300
committerTomi Korpipää <tomi.korpipaa@qt.io>2018-05-30 04:26:17 +0000
commit59c7138ef169c62a3aeec9ac51cf1b4e31bfa9de (patch)
tree414078b315034218d6491f29d7d0fb6f6db4c95e /src/Authoring/Client/Code/Core/Core
parent51a2505a0f323a1bf689c3fe048a6b0570f2d026 (diff)
Update datainput usage during editing
Implements datainput usage tracking in order for UI to have access to up-to-date binding information when needed. Highlights datainputs that are currently bound in the datainput definition dialog. Shows "no undo" warning when a datainput is deleted. Task-ID: QT3DS-1659 Change-Id: I13d2bc1131ce6a1c78166f295291fc107395a247 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Diffstat (limited to 'src/Authoring/Client/Code/Core/Core')
-rw-r--r--src/Authoring/Client/Code/Core/Core/Dispatch.cpp2
-rw-r--r--src/Authoring/Client/Code/Core/Core/Dispatch.h2
-rw-r--r--src/Authoring/Client/Code/Core/Core/DispatchListeners.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/Authoring/Client/Code/Core/Core/Dispatch.cpp b/src/Authoring/Client/Code/Core/Core/Dispatch.cpp
index e66d0488..b25e1ff7 100644
--- a/src/Authoring/Client/Code/Core/Core/Dispatch.cpp
+++ b/src/Authoring/Client/Code/Core/Core/Dispatch.cpp
@@ -647,7 +647,7 @@ void CDispatch::FireOnRefreshResourceFail(const Q3DStudio::CString &inResourceNa
void CDispatch::FireOnUndefinedDatainputsFail(
const QMultiMap<QString, QPair<qt3dsdm::Qt3DSDMInstanceHandle,
- qt3dsdm::Qt3DSDMPropertyHandle>> &map)
+ qt3dsdm::Qt3DSDMPropertyHandle>> *map)
{
m_FailListeners.FireEvent(&CFailListener::OnUndefinedDatainputsFail, map);
}
diff --git a/src/Authoring/Client/Code/Core/Core/Dispatch.h b/src/Authoring/Client/Code/Core/Core/Dispatch.h
index 535c2058..358031e7 100644
--- a/src/Authoring/Client/Code/Core/Core/Dispatch.h
+++ b/src/Authoring/Client/Code/Core/Core/Dispatch.h
@@ -201,7 +201,7 @@ public:
void FireOnUndefinedDatainputsFail(
const QMultiMap<QString,
QPair<qt3dsdm::Qt3DSDMInstanceHandle,
- qt3dsdm::Qt3DSDMPropertyHandle>> &map);
+ qt3dsdm::Qt3DSDMPropertyHandle>> *map);
void AddRendererListener(CRendererListener *inListener);
void RemoveRendererListener(CRendererListener *inListener);
diff --git a/src/Authoring/Client/Code/Core/Core/DispatchListeners.h b/src/Authoring/Client/Code/Core/Core/DispatchListeners.h
index d532b6a5..fdc488c5 100644
--- a/src/Authoring/Client/Code/Core/Core/DispatchListeners.h
+++ b/src/Authoring/Client/Code/Core/Core/DispatchListeners.h
@@ -286,7 +286,7 @@ public:
virtual void OnUndefinedDatainputsFail(
const QMultiMap<QString,
QPair<qt3dsdm::Qt3DSDMInstanceHandle,
- qt3dsdm::Qt3DSDMPropertyHandle>> &map) = 0;
+ qt3dsdm::Qt3DSDMPropertyHandle>> *map) = 0;
};
class IDataModelListener