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

QAction * QMenu::addAction ( const QString text  )  [inherited]

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. This convenience function creates a new action with text. The function adds the newly created action to the menu's list of actions, and returns it.

See also:

Definition at line 1339 of file qmenu.cpp.

Referenced by QMenu::addAction(), QMenu::addMenu(), QMenu::addSeparator(), MainWindow::addToMenu(), addWindow(), MainWindow::contextMenuEvent(), QScrollBar::contextMenuEvent(), QDialog::contextMenuEvent(), MainWindow::createColorMenu(), MainWindow::createDockWindows(), MainWindow::createMenu(), Dialog::createMenu(), ImageViewer::createMenus(), MainWindow::createMenus(), QMainWindow::createPopupMenu(), Window::createPushButtonGroup(), QLineEdit::createStandardContextMenu(), Window::dropEvent(), QMenu::exec(), QtWindowListMenu(), MainWindow::setupFileMenu(), and TextEdit::TextEdit().

    QAction *ret = new QAction(text, this);
    return ret;

Generated by  Doxygen 1.6.0   Back to index