| 450 | } |
| 451 | |
| 452 | QVector<quintptr> Project::droppedAspects(const QMimeData* mimeData) { |
| 453 | auto data = mimeData->data(QLatin1String("labplot-dnd")); |
| 454 | QDataStream stream(&data, QIODevice::ReadOnly); |
| 455 | |
| 456 | // read the project pointer first |
| 457 | quintptr project = 0; |
| 458 | stream >> project; |
| 459 | |
| 460 | // read the pointers of the dragged aspects |
| 461 | QVector<quintptr> vec; |
| 462 | stream >> vec; |
| 463 | |
| 464 | return vec; |
| 465 | } |
| 466 | |
| 467 | // ############################################################################## |
| 468 | // ################## Serialization/Deserialization ########################### |
no test coverage detected