[vlc-devel] commit: Qt: PLModel::removeItem( int ) is not for public usage ( Jakob Leben )
git version control
git at videolan.org
Wed Feb 10 11:07:51 CET 2010
vlc | branch: master | Jakob Leben <jleben at videolan.org> | Wed Feb 10 09:56:02 2010 +0100| [dee8d5f4cd5d855d160bdda9a409cc88d7e02a45] | committer: Jakob Leben
Qt: PLModel::removeItem( int ) is not for public usage
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=dee8d5f4cd5d855d160bdda9a409cc88d7e02a45
---
.../gui/qt4/components/playlist/playlist_model.hpp | 2 +-
.../gui/qt4/components/playlist/standardpanel.cpp | 5 -----
.../gui/qt4/components/playlist/standardpanel.hpp | 1 -
3 files changed, 1 insertions(+), 7 deletions(-)
diff --git a/modules/gui/qt4/components/playlist/playlist_model.hpp b/modules/gui/qt4/components/playlist/playlist_model.hpp
index 67c8726..19f704b 100644
--- a/modules/gui/qt4/components/playlist/playlist_model.hpp
+++ b/modules/gui/qt4/components/playlist/playlist_model.hpp
@@ -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 );
diff --git a/modules/gui/qt4/components/playlist/standardpanel.cpp b/modules/gui/qt4/components/playlist/standardpanel.cpp
index 4ce8617..4401931 100644
--- a/modules/gui/qt4/components/playlist/standardpanel.cpp
+++ b/modules/gui/qt4/components/playlist/standardpanel.cpp
@@ -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 )
diff --git a/modules/gui/qt4/components/playlist/standardpanel.hpp b/modules/gui/qt4/components/playlist/standardpanel.hpp
index d16e46c..ed1ed2f 100644
--- a/modules/gui/qt4/components/playlist/standardpanel.hpp
+++ b/modules/gui/qt4/components/playlist/standardpanel.hpp
@@ -93,7 +93,6 @@ private:
void createIconView();
public slots:
- void removeItem( int );
virtual void setRoot( playlist_item_t * );
private slots:
void deleteSelection();
More information about the vlc-devel
mailing list