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

void QAbstractItemView::edit ( const QModelIndex index  )  [slot, inherited]

Starts editing the item item at index if it is editable.

Definition at line 694 of file qabstractitemview.cpp.

References QModelIndex::isValid().

Referenced by QAbstractItemView::closeEditor(), QAbstractItemView::currentChanged(), QTableWidget::editItem(), QListWidget::editItem(), editItem(), QAbstractItemView::keyPressEvent(), QAbstractItemView::mouseDoubleClickEvent(), QTreeView::mouseDoubleClickEvent(), QAbstractItemView::mousePressEvent(), and QAbstractItemView::mouseReleaseEvent().

{
    if (!index.isValid())
        qWarning("edit: index was invalid");
    if (!edit(index, AllEditTriggers, 0))
        qWarning("edit: editing failed");
}


Generated by  Doxygen 1.6.0   Back to index