MCPcopy Create free account
hub / github.com/clementgallet/libTAS / dropMimeData

Method dropMimeData

src/program/ui/InputEditorModel.cpp:618–637  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

616}
617
618bool InputEditorModel::dropMimeData(const QMimeData *mimeData, Qt::DropAction action, int row, int column, const QModelIndex &parent)
619{
620 // check if the format is supported
621 if (!mimeData->hasFormat(mimeType))
622 return false;
623
624 const QByteArray encodedData = mimeData->data(mimeType);
625 QDataStream stream(encodedData);
626 if (stream.atEnd())
627 return false;
628
629 SingleInput si;
630
631 QString description;
632 stream >> si.type >> si.which >> description;
633 si.description = description.toStdString();
634 addUniqueInput(si);
635
636 return false;
637}
638
639void InputEditorModel::buildInputSet()
640{

Callers

nothing calls this directly

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected