MCPcopy Create free account
hub / github.com/YACReader/yacreader / canDropMimeData

Method canDropMimeData

YACReaderLibrary/db/comic_model.cpp:55–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55bool 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)
68bool ComicModel::dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent)

Callers 5

dragEnterEventMethod · 0.45
dragMoveEventMethod · 0.45
dropEventMethod · 0.45
dragMoveEventMethod · 0.45
dragEnterEventMethod · 0.45

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected