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

bool TreeItem::insertChildren ( int  position,
int  count,
int  columns 
)

[6]

[7]

Definition at line 108 of file treeitem.cpp.

References data(), QList< T >::insert(), row(), QList< T >::size(), and TreeItem().

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

    for (int row = 0; row < count; ++row) {
        QVector<QVariant> data(columns);
        TreeItem *item = new TreeItem(data, this);
        childItems.insert(position, item);
    }

    return true;
}


Generated by  Doxygen 1.6.0   Back to index