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.8 6.5
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
(cherry picked from commit 0a281beaa76a04665930b1e1cd5349c26ae7f0d1)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Johannes Grunenberg 2025-03-23 22:30:08 +01:00 committed by Qt Cherry-pick Bot
parent d6284de755
commit e044a1bf9a

View File

@ -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