<class name="QActionEvent" doc="/** <p>The <a href="QActionEvent.html#QActionEvent(int, com.trolltech.qt.gui.QAction, com.trolltech.qt.gui.QAction)"><tt>QActionEvent</tt></a> class provides an event that is generated when a <a href="QAction.html"><tt>QAction</tt></a> is added, removed, or changed.</p> <p>Actions can be added to widgets using QWidget::addAction(). This generates an <a href="%2E%2E/core/%2E%2E/core/QEvent.html#Type-enum"><tt>ActionAdded</tt></a> event, which you can handle to provide custom behavior. For example, <a href="QToolBar.html"><tt>QToolBar</tt></a> reimplements QWidget::actionEvent() to create <a href="QToolButton.html"><tt>QToolButton</tt></a>s for the actions.</p> @see <a href="QAction.html"><tt>QAction</tt></a> @see <tt>QWidget::addAction</tt> @see <tt>QWidget::removeAction</tt> @see <tt>QWidget::actions</tt> */"> <method name="public QActionEvent(int type, com.trolltech.qt.gui.QAction action, com.trolltech.qt.gui.QAction before)" doc="/** <p>Constructs an action event. The <tt>type</tt> can be <a href="%2E%2E/core/%2E%2E/core/QEvent.html#Type-enum"><tt>ActionChanged</tt></a>, <a href="%2E%2E/core/%2E%2E/core/QEvent.html#Type-enum"><tt>ActionAdded</tt></a>, or <a href="%2E%2E/core/%2E%2E/core/QEvent.html#Type-enum"><tt>ActionRemoved</tt></a>.</p> <p><tt>action</tt> is the action that is changed, added, or removed. If <tt>type</tt> is <a href="%2E%2E/core/%2E%2E/core/QEvent.html#Type-enum"><tt>ActionAdded</tt></a>, the action is to be inserted before the action <tt>before</tt>. If <tt>before</tt> is 0, the action is appended.</p> */"/> <method name="public QActionEvent(int type, com.trolltech.qt.gui.QAction action)" doc="/** <p>Equivalent to <a href="QActionEvent.html#QActionEvent(int, com.trolltech.qt.gui.QAction, com.trolltech.qt.gui.QAction)"><tt>QActionEvent</tt></a>(<tt>type</tt>, <tt>action</tt>, 0). */"/> <method name="public final com.trolltech.qt.gui.QAction action()" doc="/** <p>Returns the action that is changed, added, or removed.</p> @see <a href="QActionEvent.html#before()"><tt>before</tt></a> */"/> <method name="public final com.trolltech.qt.gui.QAction before()" doc="/** <p>If <a href="%2E%2E/core/%2E%2E/core/QEvent.html#type()"><tt>type</tt></a> is <a href="%2E%2E/core/%2E%2E/core/QEvent.html#Type-enum"><tt>ActionAdded</tt></a>, returns the action that should appear before <a href="QActionEvent.html#action()"><tt>action</tt></a>. If this function returns 0, the action should be appended to already existing actions on the same widget.</p> @see <a href="QActionEvent.html#action()"><tt>action</tt></a> @see <tt>QWidget::actions</tt> */"/> </class>