Skip to content

Commit

Permalink
Correctly accept track drops for inbox.
Browse files Browse the repository at this point in the history
  • Loading branch information
teo committed Apr 9, 2013
1 parent 69e226a commit 2dd5515
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/sourcetree/items/SourceItem.cpp
Expand Up @@ -761,3 +761,10 @@ SourceItem::supportedDropTypes( const QMimeData* data ) const


return DropTypesNone; return DropTypesNone;
} }


Qt::ItemFlags
SourceItem::flags() const
{
return SourceTreeItem::flags() | Qt::ItemIsDropEnabled;
}
1 change: 1 addition & 0 deletions src/sourcetree/items/SourceItem.h
Expand Up @@ -58,6 +58,7 @@ class SourceItem : public SourceTreeItem
virtual bool willAcceptDrag( const QMimeData* data ) const; virtual bool willAcceptDrag( const QMimeData* data ) const;
virtual bool dropMimeData( const QMimeData* data, Qt::DropAction action ); virtual bool dropMimeData( const QMimeData* data, Qt::DropAction action );
virtual DropTypes supportedDropTypes( const QMimeData* data ) const; virtual DropTypes supportedDropTypes( const QMimeData* data ) const;
virtual Qt::ItemFlags flags() const;


public slots: public slots:
virtual void activate(); virtual void activate();
Expand Down

0 comments on commit 2dd5515

Please sign in to comment.