[vlmc-devel] commit: MediaListView: Hold MediaCellView instead of QWidgets ( Hugo Beauzee-Luyssen )

git at videolan.org git at videolan.org
Tue Mar 16 02:34:11 CET 2010


vlmc | branch: master | Hugo Beauzee-Luyssen <beauze.h at gmail.com> | Tue Mar 16 02:33:55 2010 +0100| [2d61d15abe56d44c29abf06e0a52e260c1cb0879] | committer: Hugo Beauzee-Luyssen 

MediaListView: Hold MediaCellView instead of QWidgets

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=2d61d15abe56d44c29abf06e0a52e260c1cb0879
---

 src/Gui/library/MediaListView.cpp |    8 ++++----
 src/Gui/library/MediaListView.h   |   10 +++++-----
 2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/Gui/library/MediaListView.cpp b/src/Gui/library/MediaListView.cpp
index 5ac8f6e..33b02e8 100644
--- a/src/Gui/library/MediaListView.cpp
+++ b/src/Gui/library/MediaListView.cpp
@@ -44,7 +44,7 @@ MediaListView::MediaListView( StackViewController* nav, MediaContainer* mc ) :
 
 MediaListView::~MediaListView()
 {
-    foreach ( QWidget* cell, m_cells )
+    foreach ( MediaCellView* cell, m_cells )
         delete cell;
     m_cells.clear();
 }
@@ -73,7 +73,7 @@ void    MediaListView::cellSelection( const QUuid& uuid )
     {
         if ( !m_currentUuid.isNull() && m_cells.contains( m_currentUuid ) )
         {
-            QWidget* cell = m_cells.value( m_currentUuid );
+            MediaCellView*  cell = m_cells.value( m_currentUuid );
             cell->setPalette( m_cells.value( uuid )->palette() );
         }
         QPalette p = m_cells.value( uuid )->palette();
@@ -93,7 +93,7 @@ void    MediaListView::removeClip( const Clip* clip )
 void
 MediaListView::__clipRemoved( const QUuid &uuid )
 {
-    QWidget* cell = m_cells.take( uuid );
+    MediaCellView*  cell = m_cells.take( uuid );
     removeCell( cell );
     m_currentUuid = QUuid();
 }
@@ -101,7 +101,7 @@ MediaListView::__clipRemoved( const QUuid &uuid )
 void
 MediaListView::clear()
 {
-    foreach ( QWidget* cell, m_cells.values() )
+    foreach ( MediaCellView* cell, m_cells.values() )
         removeCell( cell );
     m_cells.clear();
 }
diff --git a/src/Gui/library/MediaListView.h b/src/Gui/library/MediaListView.h
index 3d967b5..36e9847 100644
--- a/src/Gui/library/MediaListView.h
+++ b/src/Gui/library/MediaListView.h
@@ -46,11 +46,11 @@ public:
     virtual ~MediaListView();
 
 private:
-    StackViewController*        m_nav;
-    QUuid                       m_currentUuid;
-    QHash<QUuid, QWidget*>      m_cells;
-    QUuid                       m_lastUuidClipListAsked;
-    MediaContainer*             m_mediaContainer;
+    StackViewController*            m_nav;
+    QUuid                           m_currentUuid;
+    QHash<QUuid, MediaCellView*>    m_cells;
+    QUuid                           m_lastUuidClipListAsked;
+    MediaContainer*                 m_mediaContainer;
 
 public slots:
     void        cellSelection( const QUuid& uuid );



More information about the Vlmc-devel mailing list