Qt4 Playlist: Disable dropping on non-container items
authorJakob Leben <jakob.leben@gmail.com>
Sun, 2 Aug 2009 14:57:50 +0000 (16:57 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 8 Aug 2009 17:16:44 +0000 (20:16 +0300)
commit968dd88aac2c29dc31bd6ce08f3f4a77a87f166e
tree3f734ff1b07cac8014cddb8b045cbe097a18f58a
parent0ce4275a7ebf06fa68187161eb581f8993e0060d
Qt4 Playlist: Disable dropping on non-container items

New protected field bool PLItem::b_is_node to have the data at hand.
Then only check this field in PLModel::flags().

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
modules/gui/qt4/components/playlist/playlist_item.cpp
modules/gui/qt4/components/playlist/playlist_item.hpp
modules/gui/qt4/components/playlist/playlist_model.cpp