public:
enum {
IsCurrentRole = Qt::UserRole,
- IsLeafNodeRole
+ IsLeafNodeRole,
+ IsCurrentsParentNodeRole
};
PLModel( playlist_t *, intf_thread_t *,
QModelIndex index( PLItem *, int c ) const;
QModelIndex index( int i_id, int c );
QModelIndex currentIndex();
+ bool isParent( const QModelIndex &index, const QModelIndex ¤t) const;
bool isCurrent( const QModelIndex &index ) const;
int itemId( const QModelIndex &index ) const;
static int columnFromMeta( int meta_column );
void updateChildren( playlist_item_t *, PLItem * );
/* Deep actions (affect core playlist) */
- static void recursiveAppendCopy( playlist_t *, playlist_item_t *, playlist_item_t *, bool );
- void dropAppendCopy( const PlMimeData * data, PLItem *target );
+ void dropAppendCopy( const PlMimeData * data, PLItem *target, int pos );
void dropMove( const PlMimeData * data, PLItem *target, int new_pos );
/* Popup */
class PlMimeData : public QMimeData
{
- Q_OBJECT;
+ Q_OBJECT
public:
PlMimeData();