| 53 | } |
| 54 | |
| 55 | bool ComicModel::canDropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) const |
| 56 | { |
| 57 | Q_UNUSED(action); |
| 58 | Q_UNUSED(row); |
| 59 | Q_UNUSED(column); |
| 60 | Q_UNUSED(parent); |
| 61 | |
| 62 | if (!enableResorting) |
| 63 | return false; |
| 64 | return data->formats().contains(YACReader::YACReaderLibrarComiscSelectionMimeDataFormat); |
| 65 | } |
| 66 | |
| 67 | // TODO: optimize this method (seriously) |
| 68 | bool ComicModel::dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) |
no test coverage detected