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

void QPlainTextEdit::contextMenuEvent ( QContextMenuEvent event  )  [protected, virtual]

Shows the standard context menu created with createStandardContextMenu().

If you do not want the text edit to have a context menu, you can set its contextMenuPolicy to Qt::NoContextMenu. If you want to customize the context menu, reimplement this function. If you want to extend the standard context menu, reimplement this function, call createStandardContextMenu() and extend the menu returned.

Information about the event is passed in the event object.

doc/src/snippets/code/src.gui.widgets.qplaintextedit.cpp 0

Reimplemented from QAbstractScrollArea.

Definition at line 1987 of file qplaintextedit.cpp.

{
    Q_D(QPlainTextEdit);
    d->sendControlEvent(e);
}


Generated by  Doxygen 1.6.0   Back to index