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

void QListView::setRowHidden ( int  row,
bool  hide 
) [inherited]

If hide is true, the given row will be hidden; otherwise the row will be shown.

Definition at line 484 of file qlistview.cpp.

References QListView::isRowHidden().

Referenced by QListWidget::setItemHidden().

{
    Q_D(QListView);
    if (hide && !isRowHidden(row)) {
        d->removeItem(row);
        d->hiddenRows.append(row);
    } else if (!hide && isRowHidden(row)) {
        d->hiddenRows.remove(d->hiddenRows.indexOf(row));
        d->insertItem(row);
    }
    if (d->movement == Static)
        d->doDelayedItemsLayout();
    else
        d->viewport->update();
}


Generated by  Doxygen 1.6.0   Back to index