[vlc-devel] commit: Overload toggleVisible() to update list with media from other interfaces. (Mark Bidewell )

git version control git at videolan.org
Sun Feb 8 18:29:32 CET 2009


vlc | branch: master | Mark Bidewell <mark.bidewell at alumni.clemson.edu> | Wed Feb  4 18:42:57 2009 -0500| [452a4b9f7257c4080e2bc0268f79c57214e1f427] | committer: Jean-Baptiste Kempf 

Overload toggleVisible() to update list with media from other interfaces.

Overload toggleVisible() to update list with media from other interfaces.

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=452a4b9f7257c4080e2bc0268f79c57214e1f427
---

 modules/gui/qt4/dialogs/vlm.cpp |   15 +++++++++++++++
 modules/gui/qt4/dialogs/vlm.hpp |    1 +
 2 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/modules/gui/qt4/dialogs/vlm.cpp b/modules/gui/qt4/dialogs/vlm.cpp
index adaf2d2..b8232d3 100644
--- a/modules/gui/qt4/dialogs/vlm.cpp
+++ b/modules/gui/qt4/dialogs/vlm.cpp
@@ -835,5 +835,20 @@ void VLMWrapper::EditSchedule( const QString name, const QString input,
     }
 }
 
+void VLMDialog::toggleVisible()
+{
+    QList<VLMAWidget *>::iterator it;
+    for( it = vlmItems.begin(); it != vlmItems.end(); it++ )
+    {
+        VLMAWidget *item =  *it;
+        delete item;
+        item = NULL;
+    }
+    vlmItems.clear();
+    ui.vlmListItem->clear();
+    mediasPopulator();
+    QVLCDialog::toggleVisible();
+}
+
 
 #endif
diff --git a/modules/gui/qt4/dialogs/vlm.hpp b/modules/gui/qt4/dialogs/vlm.hpp
index 5187ac6..9837064 100644
--- a/modules/gui/qt4/dialogs/vlm.hpp
+++ b/modules/gui/qt4/dialogs/vlm.hpp
@@ -78,6 +78,7 @@ public:
         return instance;
     };
     virtual ~VLMDialog();
+    void toggleVisible();
 
     VLMWrapper *vlmWrapper;
     vlm_t *p_vlm;




More information about the vlc-devel mailing list