diff --git a/src/presentation/querytreemodelbase.h b/src/presentation/querytreemodelbase.h --- a/src/presentation/querytreemodelbase.h +++ b/src/presentation/querytreemodelbase.h @@ -90,6 +90,7 @@ bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) Q_DECL_OVERRIDE; QMimeData *mimeData(const QModelIndexList &indexes) const Q_DECL_OVERRIDE; QStringList mimeTypes() const Q_DECL_OVERRIDE; + Qt::DropActions supportedDragActions() const Q_DECL_OVERRIDE; Qt::DropActions supportedDropActions() const Q_DECL_OVERRIDE; // TODO Qt5: Remove but needed in Qt4, so that we can trigger it from the outside diff --git a/src/presentation/querytreemodelbase.cpp b/src/presentation/querytreemodelbase.cpp --- a/src/presentation/querytreemodelbase.cpp +++ b/src/presentation/querytreemodelbase.cpp @@ -232,6 +232,11 @@ << QStringLiteral("application/x-zanshin-indexes"); } +Qt::DropActions QueryTreeModelBase::supportedDragActions() const +{ + return Qt::MoveAction; +} + Qt::DropActions QueryTreeModelBase::supportedDropActions() const { return Qt::MoveAction;