20#ifndef LIBREPCB_EDITOR_MENUBUILDER_H
21#define LIBREPCB_EDITOR_MENUBUILDER_H
47 typedef QMenu* (*MenuFactory)(QWidget*);
50 DefaultAction = (1 << 0),
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;
Definition: occmodel.cpp:77