| 45 | } |
| 46 | |
| 47 | QList<qulonglong> YACReader::mimeDataToComicsIds(const QMimeData *data) |
| 48 | { |
| 49 | QList<qulonglong> comicIds; |
| 50 | QByteArray rawData = data->data(YACReader::YACReaderLibrarComiscSelectionMimeDataFormat); |
| 51 | QDataStream in(&rawData, QIODevice::ReadOnly); |
| 52 | in >> comicIds; // deserialize the list of indentifiers |
| 53 | return comicIds; |
| 54 | } |
| 55 | |
| 56 | QAction *YACReader::wrappedToolbarAction(QAction *action) |
| 57 | { |