[vlc-devel] [PATCH] Qt4: Make playlist window drag&drop to current selected PLSelItem

Jean-Baptiste Kempf jb at videolan.org
Fri Dec 30 02:26:43 CET 2011


On Wed, Dec 28, 2011 at 10:59:40AM -0500, Edward Wang wrote :
> +    bool is_pl;
> +    int x = selector->currentItem()->data( 0, SPECIAL_ROLE ).toInt();
> +    if( x == IS_PL ) is_pl = true;
> +    else if( x == IS_ML ) is_pl = false;
> +    else return;

This should be in a method of the selector.

>  //#include <vlc_playlist.h>
> +#include "selector.hpp"
No need, use forward declaration.

> + * \param b_playlist true to add to playlist, false to add to media library

Do you manage correctly the SD?

Else, seems ok

Best regards,

-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device



More information about the vlc-devel mailing list