summaryrefslogtreecommitdiff
path: root/src/controls/qquickmenuitem.cpp
diff options
context:
space:
mode:
authorPaul Olav Tvete <paul.tvete@qt.io>2017-03-02 14:12:36 +0100
committerPaul Olav Tvete <paul.tvete@qt.io>2017-03-03 08:03:55 +0000
commit45db515ffa27fb3e69ed1c6285f919064f6fe27b (patch)
tree85f2b562ad851e2cbb0b76c996da4a3757b20644 /src/controls/qquickmenuitem.cpp
parent9b160e81af2b2e5ad0eb0a3ac51cdb25d7a410e6 (diff)
downloadqtquickcontrols-45db515ffa27fb3e69ed1c6285f919064f6fe27b.tar.gz
Build fix for -no-feature-shortcut
Change-Id: I63f1990f72d0eb736c5e1ecba5574bb13f9ef127 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/controls/qquickmenuitem.cpp')
-rw-r--r--src/controls/qquickmenuitem.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/controls/qquickmenuitem.cpp b/src/controls/qquickmenuitem.cpp
index 3c5bfe4b..60aa0f6f 100644
--- a/src/controls/qquickmenuitem.cpp
+++ b/src/controls/qquickmenuitem.cpp
@@ -606,6 +606,7 @@ void QQuickMenuItem1::setShortcut(const QVariant &shortcut)
void QQuickMenuItem1::updateShortcut()
{
+#if QT_CONFIG(shortcut)
if (platformItem()) {
QKeySequence sequence;
QVariant var = shortcut();
@@ -617,6 +618,7 @@ void QQuickMenuItem1::updateShortcut()
syncWithPlatformMenu();
}
emit shortcutChanged();
+#endif // QT_CONFIG(shortcut)
}
bool QQuickMenuItem1::checkable() const