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

int PiecesModel::rowCount ( const QModelIndex parent ) const [virtual]

Returns the number of rows under the given parent. When the parent is valid it means that rowCount is returning the number of children of parent.

{Tip:} When implementing a table based model, rowCount() should return 0 when the parent is valid.

See also:

Implements QAbstractItemModel.

Definition at line 179 of file piecesmodel.cpp.

References QModelIndex::isValid(), and QList< T >::size().

    if (parent.isValid())
        return 0;
        return pixmaps.size();

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index