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

bool TreeItem::insertColumns ( int  position,
int  columns 



Definition at line 124 of file treeitem.cpp.

References child(), QList< T >::insert(), insertColumns(), and QList< T >::size().

Referenced by TreeModel::insertColumns(), and insertColumns().

    if (position < 0 || position > itemData.size())
        return false;

    for (int column = 0; column < columns; ++column)
        itemData.insert(position, QVariant());

    foreach (TreeItem *child, childItems)
        child->insertColumns(position, columns);

    return true;

Generated by  Doxygen 1.6.0   Back to index