Permalink
Browse files

Correctly accept track drops for inbox.

  • Loading branch information...
1 parent 69e226a commit 2dd5515392d0b6c911595edbaa0b0e0942fce43b @teo teo committed Mar 6, 2013
Showing with 8 additions and 0 deletions.
  1. +7 −0 src/sourcetree/items/SourceItem.cpp
  2. +1 −0 src/sourcetree/items/SourceItem.h
@@ -761,3 +761,10 @@ SourceItem::supportedDropTypes( const QMimeData* data ) const
return DropTypesNone;
}
+
+
+Qt::ItemFlags
+SourceItem::flags() const
+{
+ return SourceTreeItem::flags() | Qt::ItemIsDropEnabled;
+}
@@ -58,6 +58,7 @@ class SourceItem : public SourceTreeItem
virtual bool willAcceptDrag( const QMimeData* data ) const;
virtual bool dropMimeData( const QMimeData* data, Qt::DropAction action );
virtual DropTypes supportedDropTypes( const QMimeData* data ) const;
+ virtual Qt::ItemFlags flags() const;
public slots:
virtual void activate();

0 comments on commit 2dd5515

Please sign in to comment.