]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/components/playlist/playlist_model.hpp
Qt: PLModel::removeItem( int ) is not for public usage
[vlc] / modules / gui / qt4 / components / playlist / playlist_model.hpp
index 9e368478bb84b631c80396d6afe8df4ef666db1f..19f704b1e4ab345365820c832d30877c6cf54cff 100644 (file)
@@ -97,7 +97,6 @@ public:
     void search( const QString& search_text );
     void sort( int column, Qt::SortOrder order );
     void sort( int i_root_id, int column, Qt::SortOrder order );
-    void removeItem( int );
     void rebuild(); void rebuild( playlist_item_t *, bool b_first = false );
 
     inline PLItem *getItem( QModelIndex index ) const
@@ -120,9 +119,9 @@ private:
 
     /* Actions */
     void recurseDelete( QList<PLItem*> children, QModelIndexList *fullList );
-    void doDeleteItem( PLItem *item, QModelIndexList *fullList );
     void updateTreeItem( PLItem * );
     void removeItem ( PLItem * );
+    void removeItem( int );
     void takeItem( PLItem * ); //will not delete item
     void insertChildren( PLItem *node, QList<PLItem*>& items, int i_pos );
     void dropAppendCopy( QByteArray& data, PLItem *target );
@@ -150,6 +149,7 @@ private:
 
 signals:
     void currentChanged( const QModelIndex& );
+    void rootChanged();
 
 public slots:
     void activateItem( const QModelIndex &index );