]> git.sesse.net Git - vlc/commitdiff
Qt: PLModel::removeItem( int ) is not for public usage
authorJakob Leben <jleben@videolan.org>
Wed, 10 Feb 2010 08:56:02 +0000 (09:56 +0100)
committerJakob Leben <jleben@videolan.org>
Wed, 10 Feb 2010 10:07:39 +0000 (11:07 +0100)
modules/gui/qt4/components/playlist/playlist_model.hpp
modules/gui/qt4/components/playlist/standardpanel.cpp
modules/gui/qt4/components/playlist/standardpanel.hpp

index 67c8726ac6ab3a483103d7c573840ab1e1b0777d..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
@@ -122,6 +121,7 @@ private:
     void recurseDelete( QList<PLItem*> children, 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 );
index 4ce86172d0f46d03797c0ec4b72ba620dda55e1c..4401931cb157f7a1f18fd5eaed5f31a587b4053f 100644 (file)
@@ -261,11 +261,6 @@ void StandardPLPanel::setRoot( playlist_item_t *p_item )
     model->rebuild( p_item );
 }
 
-void StandardPLPanel::removeItem( int i_id )
-{
-    model->removeItem( i_id );
-}
-
 /* Delete and Suppr key remove the selection
    FilterKey function and code function */
 void StandardPLPanel::keyPressEvent( QKeyEvent *e )
index d16e46c161f4f50fb196207b7795c75cdf34be34..ed1ed2f379cd126cbf05d9d2c4ccc90b1b8f745b 100644 (file)
@@ -93,7 +93,6 @@ private:
     void createIconView();
 
 public slots:
-    void removeItem( int );
     virtual void setRoot( playlist_item_t * );
 private slots:
     void deleteSelection();