Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

QMenu * QAction::menu (  )  const

Returns the menu contained by this action. Actions that contain menus can be used to create menu items with submenus, or inserted into toolbars to create buttons with popup menus.

See also:
QMenu::addAction()

Definition at line 457 of file qaction.cpp.

Referenced by QAbstractFormBuilder::createActionRefDom(), QAbstractFormBuilder::createDom(), QMenuBar::event(), QMenu::event(), QMenu::keyPressEvent(), QMenu::mouseReleaseEvent(), QMenuBar::mouseReleaseEvent(), and QToolButton::setDefaultAction().

{
    Q_D(const QAction);
    return d->menu;
}


Generated by  Doxygen 1.6.0   Back to index