From 91a028039470e260ba2b06b9cea76418562eb1cc Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Mon, 27 Aug 2018 13:32:11 +0200 Subject: [PATCH] QmlDesigner: Add alternative shortcut for macOS to reload property sheet Change-Id: I4e823e39812b06f7131c610a0ac259df722b5b12 Reviewed-by: Brook Cronin Reviewed-by: Tim Jenssen --- .../components/propertyeditor/propertyeditorview.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorview.cpp b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorview.cpp index e046eceb647..98df2867fc2 100644 --- a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorview.cpp +++ b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorview.cpp @@ -80,7 +80,10 @@ PropertyEditorView::PropertyEditorView(QWidget *parent) : { m_qmlDir = PropertyEditorQmlBackend::propertyEditorResourcesPath(); - m_updateShortcut = new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_F3), m_stackedWidget); + if (Utils::HostOsInfo().isMacHost()) + m_updateShortcut = new QShortcut(QKeySequence(Qt::ALT + Qt::Key_F3), m_stackedWidget); + else + m_updateShortcut = new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_F3), m_stackedWidget); connect(m_updateShortcut, &QShortcut::activated, this, &PropertyEditorView::reloadQml); m_stackedWidget->setStyleSheet(Theme::replaceCssColors(