From 0a281beaa76a04665930b1e1cd5349c26ae7f0d1 Mon Sep 17 00:00:00 2001 From: Johannes Grunenberg Date: Sun, 23 Mar 2025 22:30:08 +0100 Subject: [PATCH] Ensure Qt builds with -no-feature-shortcut on Windows Building without shortcuts would fail due to a missing QKeySequence. This was already handled in the implementation but required an ifdef in the header. Change-Id: I12c92ca480d0abdb518aae00b5b7e259133ef9ca Pick-to: 6.5 6.8 6.9 Reviewed-by: Oliver Wolff --- src/plugins/platforms/windows/qwindowsmenu.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/platforms/windows/qwindowsmenu.h b/src/plugins/platforms/windows/qwindowsmenu.h index 6f66180d825..3a91f57e1e9 100644 --- a/src/plugins/platforms/windows/qwindowsmenu.h +++ b/src/plugins/platforms/windows/qwindowsmenu.h @@ -76,7 +76,9 @@ private: bool m_checkable = false; bool m_checked = false; bool m_enabled = true; +#if QT_CONFIG(shortcut) QKeySequence m_shortcut; +#endif }; class QWindowsMenu : public QPlatformMenu