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

QMimeData * QPlainTextEdit::createMimeDataFromSelection (  )  const [protected, virtual]

This function returns a new MIME data object to represent the contents of the text edit's current selection. It is called when the selection needs to be encapsulated into a new QMimeData object; for example, when a drag and drop operation is started, or when data is copied to the clipboard.

If you reimplement this function, note that the ownership of the returned QMimeData object is passed to the caller. The selection can be retrieved by using the textCursor() function.

Definition at line 2311 of file qplaintextedit.cpp.

{
    Q_D(const QPlainTextEdit);
    return d->control->QTextControl::createMimeDataFromSelection();
}


Generated by  Doxygen 1.6.0   Back to index