mirror of
https://github.com/YACReader/yacreader
synced 2025-07-26 17:04:45 -04:00
added drag&drop support for sorting comics in lists
This commit is contained in:
@ -129,3 +129,13 @@ QString YACReader::labelColorToRGBString(LabelColors color)
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
QList<qulonglong> YACReader::mimeDataToComicsIds(const QMimeData *data)
|
||||
{
|
||||
QList<qulonglong> comicIds;
|
||||
QByteArray rawData = data->data(YACReader::YACReaderLibrarComiscSelectionMimeDataFormat);
|
||||
QDataStream in(&rawData,QIODevice::ReadOnly);
|
||||
in >> comicIds; //deserialize the list of indentifiers
|
||||
return comicIds;
|
||||
}
|
||||
|
Reference in New Issue
Block a user