Support drag from Finder to playlist on Mac.

Fix small build thing.
This commit is contained in:
John Maguire 2010-05-05 11:50:45 +00:00
parent 19b08540ef
commit a7d9c4d0dc
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@
- (void) mediaKeyEvent: (int)key state: (BOOL)state repeat: (BOOL)repeat; - (void) mediaKeyEvent: (int)key state: (BOOL)state repeat: (BOOL)repeat;
@end @end
@interface AppDelegate :NSObject <NSApplicationDelegate> { @interface AppDelegate :NSObject { //<NSApplicationDelegate> {
QObject* application_handler_; QObject* application_handler_;
} }

View File

@ -338,7 +338,7 @@ QStringList Playlist::mimeTypes() const {
} }
Qt::DropActions Playlist::supportedDropActions() const { Qt::DropActions Playlist::supportedDropActions() const {
return Qt::MoveAction | Qt::CopyAction; return Qt::MoveAction | Qt::CopyAction | Qt::LinkAction;
} }
bool Playlist::dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int, const QModelIndex&) { bool Playlist::dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int, const QModelIndex&) {