added custom drag to comic table view, drops are accepted in lists view

This commit is contained in:
Luis Ángel San Martín
2014-12-03 12:28:22 +01:00
parent 4531e31d05
commit e2e908302e
5 changed files with 33 additions and 16 deletions

View File

@ -38,6 +38,8 @@ public:
QModelIndex index(int row, int column,
const QModelIndex &parent = QModelIndex()) const;
QModelIndex parent(const QModelIndex &index) const;
bool canDropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) const;
bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent);
//Convenience methods
void setupReadingListsData(QString path);