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

void QAbstractItemView::closePersistentEditor ( const QModelIndex index  )  [inherited]

Closes the persistent editor for the item at the given index.

See also:
openPersistentEditor()

Definition at line 2640 of file qabstractitemview.cpp.

Referenced by QTableWidget::closePersistentEditor(), QListWidget::closePersistentEditor(), and QTreeWidget::closePersistentEditor().

{
    Q_D(QAbstractItemView);
    QWidget *editor = d->editorForIndex(index);
    if (editor) {
        d->persistent.removeAll(editor);
        d->releaseEditor(editor);
    }
    d->removeEditor(editor);
}


Generated by  Doxygen 1.6.0   Back to index