summaryrefslogtreecommitdiffstats
path: root/src/Authoring/Studio/Palettes/Action/ActionView.cpp
diff options
context:
space:
mode:
authorMäättä Antti <antti.maatta@qt.io>2017-10-19 12:50:57 +0300
committerAntti Määttä <antti.maatta@qt.io>2017-10-24 13:23:52 +0000
commitf407c37d3f0ab61b3923c3ef0e5d0f842f0b0e41 (patch)
tree92908207b57b828293474644d5438b800a7753b9 /src/Authoring/Studio/Palettes/Action/ActionView.cpp
parent51e7b6187f3816336e4c9a4a0ab87f788ff1c092 (diff)
Rename CUICDMSlideHandle to Qt3DSDMSlideHandle
Task-number: QT3DS-18 Change-Id: Idc37208a981ab8ab03cc1db31a45ab19e602a5aa Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'src/Authoring/Studio/Palettes/Action/ActionView.cpp')
-rw-r--r--src/Authoring/Studio/Palettes/Action/ActionView.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/Authoring/Studio/Palettes/Action/ActionView.cpp b/src/Authoring/Studio/Palettes/Action/ActionView.cpp
index 7657291a..91359832 100644
--- a/src/Authoring/Studio/Palettes/Action/ActionView.cpp
+++ b/src/Authoring/Studio/Palettes/Action/ActionView.cpp
@@ -561,7 +561,7 @@ void ActionView::OnSelectionSet(Q3DStudio::SSelectedValue inSelectable)
theInstance = instances[0];
break;
case Q3DStudio::SelectedValueTypes::Slide: {
- qt3dsdm::CUICDMSlideHandle theSlideHandle =
+ qt3dsdm::Qt3DSDMSlideHandle theSlideHandle =
inSelectable.getData<Q3DStudio::SSlideInstanceWrapper>().m_Slide;
// Get the owning component instance
CClientDataModelBridge *theBridge = GetBridge();
@@ -575,15 +575,15 @@ void ActionView::OnSelectionSet(Q3DStudio::SSelectedValue inSelectable)
setItem(theInstance);
}
-void ActionView::OnActionAdded(qt3dsdm::CUICDMActionHandle inAction, qt3dsdm::CUICDMSlideHandle inSlide, qt3dsdm::Qt3DSDMInstanceHandle inOwner)
+void ActionView::OnActionAdded(qt3dsdm::CUICDMActionHandle inAction, qt3dsdm::Qt3DSDMSlideHandle inSlide, qt3dsdm::Qt3DSDMInstanceHandle inOwner)
{
CDoc *theDoc = GetDoc();
qt3dsdm::CStudioSystem *theStudioSystem = theDoc->GetStudioSystem();
- qt3dsdm::CUICDMSlideHandle theCurrentSlide = theDoc->GetActiveSlide();
- qt3dsdm::CUICDMSlideHandle theMasterSlideOfAction =
+ qt3dsdm::Qt3DSDMSlideHandle theCurrentSlide = theDoc->GetActiveSlide();
+ qt3dsdm::Qt3DSDMSlideHandle theMasterSlideOfAction =
theStudioSystem->GetSlideSystem()->GetMasterSlide(inSlide);
- qt3dsdm::CUICDMSlideHandle theMasterOfCurrentSlide =
+ qt3dsdm::Qt3DSDMSlideHandle theMasterOfCurrentSlide =
theStudioSystem->GetSlideSystem()->GetMasterSlide(theCurrentSlide);
if (inOwner == m_itemHandle && // the action is added to current viewed instance
@@ -597,7 +597,7 @@ void ActionView::OnActionAdded(qt3dsdm::CUICDMActionHandle inAction, qt3dsdm::CU
}
}
-void ActionView::OnActionDeleted(qt3dsdm::CUICDMActionHandle inAction, qt3dsdm::CUICDMSlideHandle inSlide, qt3dsdm::Qt3DSDMInstanceHandle inOwner)
+void ActionView::OnActionDeleted(qt3dsdm::CUICDMActionHandle inAction, qt3dsdm::Qt3DSDMSlideHandle inSlide, qt3dsdm::Qt3DSDMInstanceHandle inOwner)
{
Q_UNUSED(inSlide);
Q_UNUSED(inOwner);
@@ -811,8 +811,6 @@ void ActionView::initialize()
rootContext()->setContextProperty("_actionView"_L1, this);
rootContext()->setContextProperty("_resDir"_L1, resourceImageUrl());
rootContext()->setContextProperty("_tabOrderHandler"_L1, tabOrderHandler());
- rootContext()->setContextProperty("_mouseHelper"_L1, &m_mouseHelper);
-
qmlRegisterUncreatableType<qt3dsdm::HandlerArgumentType>("Qt3DStudio", 1, 0, "HandlerArgumentType",
"HandlerArgumentType is an enum container"_L1);
qmlRegisterUncreatableType<qt3dsdm::DataModelDataType>("Qt3DStudio", 1, 0, "DataModelDataType",