]> git.sesse.net Git - vlc/commit
Qt: drag-and-drop: simplification and robustness
authorJakob Leben <jleben@videolan.org>
Tue, 9 Mar 2010 16:49:41 +0000 (17:49 +0100)
committerJakob Leben <jleben@videolan.org>
Tue, 9 Mar 2010 17:11:35 +0000 (18:11 +0100)
commite3c255e660e71af08a9cae4183e36cefd4085623
tree748de44e829cb618908caf7de4071baee35d395d
parent066b059ba824a8ec9155ecde84d707ba16d2a469
Qt: drag-and-drop: simplification and robustness

- Make PlMimeData simply a subclass of QMimeData: destructor of indirect
subclasses of QObject is called even if their direct base class' destructor
is not virtual.
- Protection against using input_item_t* from another VLC instance:
qobject_cast<PlMimeData*>() will fail on QMimeData dropped from another process.
- Some refactoring of PLModel::dropMove() for robustness.
modules/gui/qt4/components/playlist/playlist_model.cpp
modules/gui/qt4/components/playlist/playlist_model.hpp
modules/gui/qt4/components/playlist/selector.cpp