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

Qt::ItemFlags PiecesModel::flags ( const QModelIndex index ) const [virtual]

Returns the item flags for the given index.

The base class implementation returns a combination of flags that enables the item (ItemIsEnabled) and allows it to be selected (ItemIsSelectable).

See also:

Reimplemented from QAbstractItemModel.

Definition at line 81 of file piecesmodel.cpp.

References QModelIndex::isValid().

    if (index.isValid())
        return (Qt::ItemIsEnabled | Qt::ItemIsSelectable | Qt::ItemIsDragEnabled);

    return Qt::ItemIsDropEnabled;

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index