summaryrefslogtreecommitdiffstats
path: root/src/Authoring/Studio/Palettes/Action/ActionView.cpp
diff options
context:
space:
mode:
authorTomi Korpipaa <tomi.korpipaa@qt.io>2018-03-22 07:43:24 +0200
committerTomi Korpipää <tomi.korpipaa@qt.io>2018-03-23 03:57:27 +0000
commita655a94f28bb6e4e19486eba8d50db3cc5b823b8 (patch)
tree55bd7e72f6d45ebe65dbc57d611b0024a6b6f199 /src/Authoring/Studio/Palettes/Action/ActionView.cpp
parent90e4f80a8492a50c147aebdfe4ea295860cf7c09 (diff)
Fix tooltips view menu item
Task-number: QT3DS-1320 Change-Id: If50eb65bcae06eecc52fd9b4ca20fb28016c9a5a Reviewed-by: Janne Kangas <janne.kangas@qt.io> Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: Antti Määttä <antti.maatta@qt.io>
Diffstat (limited to 'src/Authoring/Studio/Palettes/Action/ActionView.cpp')
-rw-r--r--src/Authoring/Studio/Palettes/Action/ActionView.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Authoring/Studio/Palettes/Action/ActionView.cpp b/src/Authoring/Studio/Palettes/Action/ActionView.cpp
index cd645435..b2a95294 100644
--- a/src/Authoring/Studio/Palettes/Action/ActionView.cpp
+++ b/src/Authoring/Studio/Palettes/Action/ActionView.cpp
@@ -930,7 +930,7 @@ CClientDataModelBridge *ActionView::GetBridge()
void ActionView::initialize()
{
CStudioPreferences::setQmlContextProperties(rootContext());
- rootContext()->setContextProperty("_actionView"_L1, this);
+ rootContext()->setContextProperty("_parentView"_L1, this);
rootContext()->setContextProperty("_resDir"_L1, resourceImageUrl());
rootContext()->setContextProperty("_tabOrderHandler"_L1, tabOrderHandler());
rootContext()->setContextProperty("_mouseHelper"_L1, &m_mouseHelper);
@@ -972,3 +972,8 @@ int ActionView::slideNameToIndex(const QString &name)
const auto slides = slideNames(); // KDAB_TODO cache it
return slides.indexOf(name);
}
+
+bool ActionView::toolTipsEnabled()
+{
+ return CStudioPreferences::ShouldShowTooltips();
+}