diff --git a/src/widgets/widgets/qmenu.h b/src/widgets/widgets/qmenu.h index 73058c165c..7d502f9f1b 100644 --- a/src/widgets/widgets/qmenu.h +++ b/src/widgets/widgets/qmenu.h @@ -108,6 +108,7 @@ public: #else // addAction(QString): Connect to a QObject slot / functor or function pointer (with context) template + QT_DEPRECATED_VERSION_X_6_4("Use addAction(text, shortcut, object, slot) instead.") inline typename std::enable_if::value && QtPrivate::IsPointerToTypeDerivedFromQObject::Value, QAction *>::type addAction(const QString &text, const Obj *object, Func1 slot, @@ -117,12 +118,14 @@ public: } // addAction(QString): Connect to a functor or function pointer (without context) template + QT_DEPRECATED_VERSION_X_6_4("Use addAction(text, shortcut, slot) instead.") inline QAction *addAction(const QString &text, Func1 slot, const QKeySequence &shortcut) { return addAction(text, shortcut, slot); } // addAction(QIcon, QString): Connect to a QObject slot / functor or function pointer (with context) template + QT_DEPRECATED_VERSION_X_6_4("Use addAction(icon, text, shortcut, object, slot) instead.") inline typename std::enable_if::value && QtPrivate::IsPointerToTypeDerivedFromQObject::Value, QAction *>::type addAction(const QIcon &actionIcon, const QString &text, const Obj *object, Func1 slot, @@ -133,6 +136,7 @@ public: } // addAction(QIcon, QString): Connect to a functor or function pointer (without context) template + QT_DEPRECATED_VERSION_X_6_4("Use addAction(icon, text, shortcut, slot) instead.") inline QAction *addAction(const QIcon &actionIcon, const QString &text, Func1 slot, const QKeySequence &shortcut) {