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

void QListWidget::insertItem ( int  row,
QListWidgetItem item 
)

Inserts the item at the position in the list given by row.

See also:
addItem()

Definition at line 1325 of file qlistwidget.cpp.

References QListWidgetItem::view.

Referenced by addItem(), and dropEvent().

{
    Q_D(QListWidget);
    if (item && !item->view)
        d->model()->insert(row, item);
}


Generated by  Doxygen 1.6.0   Back to index