|
|
|
|
@ -202,7 +202,7 @@ QMimeData* BookmarksModel::mimeData(const QModelIndexList &indexes) const |
|
|
|
|
foreach (const QModelIndex &index, indexes) { |
|
|
|
|
// If item's parent (=folder) is also selected, we will just move the whole folder
|
|
|
|
|
if (index.isValid() && index.column() == 0 && !indexes.contains(index.parent())) { |
|
|
|
|
stream << index.row() << (quint32) index.internalId(); |
|
|
|
|
stream << index.row() << index.internalId(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -231,7 +231,13 @@ bool BookmarksModel::dropMimeData(const QMimeData* data, Qt::DropAction action, |
|
|
|
|
|
|
|
|
|
while (!stream.atEnd()) { |
|
|
|
|
int row; |
|
|
|
|
quint32 id; |
|
|
|
|
|
|
|
|
|
#if QT_VERSION < 0x050000 |
|
|
|
|
qint64 id; |
|
|
|
|
#else |
|
|
|
|
quintptr id; |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
stream >> row >> id; |
|
|
|
|
QModelIndex index = createIndex(row, 0, id); |
|
|
|
|
BookmarkItem* itm = item(index); |
|
|
|
|
|