Logo Search packages:      
Sourcecode: bangarang version File versions  Download package

Qt::ItemFlags MediaItemModel::flags ( const QModelIndex &  index  )  const

Flags for items dragged from a view associated with the model.

Definition at line 634 of file mediaitemmodel.cpp.

{
    //Qt::ItemFlags defaultFlags = QStandardItemModel::flags(index);
    Qt::ItemFlags defaultFlags = Qt::ItemIsSelectable | Qt::ItemIsEnabled;
    
    if (index.isValid()) {
        return Qt::ItemIsDragEnabled | Qt::ItemIsDropEnabled | defaultFlags;
    } else {
        return Qt::ItemIsDropEnabled | defaultFlags;
    }
}


Generated by  Doxygen 1.6.0   Back to index