6#include <private/qapplication_p.h>
7#include <private/qwidget_p.h>
10#include <private/qmenu_p.h>
12#if QT_CONFIG(graphicsview)
32 for (
auto it = objects.crbegin();
it !=
end; ++
it) {
36#if QT_CONFIG(graphicsview)
37 else if (
QGraphicsWidget *graphicsWidget = qobject_cast<QGraphicsWidget*>(
object))
38 graphicsWidget->removeAction(
q);
43#if QT_CONFIG(shortcut)
59 QMenu *theMenu = qobject_cast<QMenu*>(
menu);
61 "QAction::setMenu expects a QMenu* in widget applications");
63 m_menu->d_func()->setOverrideMenuAction(
nullptr);
66 m_menu->d_func()->setOverrideMenuAction(
q);
virtual void setMenu(QObject *menu)
virtual QObject * menu() const
QObjectList associatedObjects
The QAction class provides an abstraction for user commands that can be added to different user inter...
QActionPrivate * createActionPrivate() const override
const_reverse_iterator crend() const noexcept
bool(* ContextMatcher)(QObject *object, Qt::ShortcutContext context)
QSet< QString >::iterator it
Combined button and popup list for selecting options.
GLdouble GLdouble GLdouble GLdouble q
#define Q_ASSERT_X(cond, x, msg)