47 typedef QMenu* (*MenuFactory)(QWidget*);
52 Q_DECLARE_FLAGS(Flags,
Flag)
64 QMenu*
addSubMenu(const QString& objectName, const QString& title,
65 const QIcon& icon = QIcon()) noexcept;
66 void addAction(QAction* action, Flags flags = Flags()) noexcept;
67 void addAction(const QScopedPointer<QAction>& action,
68 Flags flags = Flags()) noexcept;
69 void addSection(const QString& text, const QIcon& icon = QIcon()) noexcept;
98 static QMenu*
createMenu(const QString& objectName, const QString& text,
99 const QIcon& icon, QWidget* parent) noexcept;