Fix build with -no-feature-menu
Pick-to: 6.5 Change-Id: Ie18d896799dd99c74dcdf00cd43c2aedcd9b8d1c Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
parent
010a898771
commit
cff65c860f
@ -9,6 +9,7 @@ QT_USE_NAMESPACE
|
||||
|
||||
#if QT_WIDGETS_REMOVED_SINCE(6, 3)
|
||||
|
||||
#if QT_CONFIG(menu)
|
||||
#include "qmenu.h"
|
||||
|
||||
QAction *QMenu::addAction(const QString &text)
|
||||
@ -20,6 +21,7 @@ QAction *QMenu::addAction(const QIcon &icon, const QString &text)
|
||||
{
|
||||
return QWidget::addAction(icon, text);
|
||||
}
|
||||
#endif
|
||||
|
||||
#if !QT_CONFIG(shortcut)
|
||||
// the overloads taking QKeySequence as a trailing argument are deprecated, not removed,
|
||||
|
Loading…
Reference in New Issue
Block a user