summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2018-05-15 09:55:27 +0200
committerAndy Nichols <andy.nichols@qt.io>2018-05-15 08:28:38 +0000
commitd26a4caa268fbcdbb05b3f1e645eb01095f92fa2 (patch)
tree1bde3fac01c3311c0742e5f4a50577e539712e28 /tools
parentb7144ab7bf3cad4c6a867aeda20c388830fe36e8 (diff)
viewer: Rely on widget menus/shortcuts for profileui activation
...when widgets are enabled. The main goal is to get rid of the double-double click activation when running the viewer on a desktop. Change-Id: I4cf4f1735837bef40ed2a62a843e25c00a50a418 Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'tools')
-rw-r--r--tools/q3dsviewer/main.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/q3dsviewer/main.cpp b/tools/q3dsviewer/main.cpp
index ed053fd..498c6ce 100644
--- a/tools/q3dsviewer/main.cpp
+++ b/tools/q3dsviewer/main.cpp
@@ -133,6 +133,9 @@ int main(int argc, char *argv[])
else
view->show();
engine->setOnDemandRendering(true);
+ // in QWindow mode let F10 and double double clicks activate the
+ // profileui via the engine
+ engine->setAutoToggleProfileUi(true);
} else {
#ifdef Q3DSVIEWER_WIDGETS
mw = new Q3DStudioMainWindow(view.take(), remote.data());
@@ -140,6 +143,9 @@ int main(int argc, char *argv[])
mw->showFullScreen();
else
mw->show();
+ // with widgets the engine's built-in profileui activation is not
+ // desirable since we have menu items with the same shortcuts (F10)
+ engine->setAutoToggleProfileUi(false);
#endif
}