MCPcopy Create free account
hub / github.com/aldelaro5/dolphin-memory-engine / mimeData

Method mimeData

Source/GUI/StructEditor/StructDetailModel.cpp:140–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140QMimeData* StructDetailModel::mimeData(const QModelIndexList& indexes) const
141{
142 QMimeData* mimeData = new QMimeData;
143 QByteArray data;
144
145 QDataStream stream(&data, QIODevice::WriteOnly);
146
147 int startRow = indexes[0].row();
148 int endRow = indexes.last().row();
149
150 stream << static_cast<int>(indexes[0].row());
151 stream << static_cast<int>(endRow - startRow + 1);
152
153 mimeData->setData("application/x-structfield", data);
154 return mimeData;
155}
156
157bool StructDetailModel::dropMimeData(const QMimeData* data, Qt::DropAction action, int row,
158 int column, const QModelIndex& parent)

Callers

nothing calls this directly

Calls 1

setDataMethod · 0.45

Tested by

no test coverage detected