[vlc-commits] Qt: media library disambiguation.

Francois Cartegnie git at videolan.org
Thu Aug 22 19:49:16 CEST 2013


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Aug 22 19:40:12 2013 +0200| [dec229cdf4d8dbd90d8efa2d50fadc0cc259acac] | committer: Francois Cartegnie

Qt: media library disambiguation.

If we need to axe something more...

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

 modules/gui/qt4/components/playlist/ml_item.cpp       |    4 ++--
 modules/gui/qt4/components/playlist/ml_item.hpp       |    4 ++--
 modules/gui/qt4/components/playlist/ml_model.cpp      |    4 ++--
 modules/gui/qt4/components/playlist/ml_model.hpp      |    4 ++--
 modules/gui/qt4/components/playlist/playlist.cpp      |    2 +-
 modules/gui/qt4/components/playlist/selector.cpp      |    4 ++--
 modules/gui/qt4/components/playlist/standardpanel.cpp |    2 +-
 modules/gui/qt4/components/simple_preferences.cpp     |    4 ++--
 modules/gui/qt4/dialogs/ml_configuration.cpp          |    4 ++--
 modules/gui/qt4/dialogs/ml_configuration.hpp          |    4 ++--
 10 files changed, 18 insertions(+), 18 deletions(-)

diff --git a/modules/gui/qt4/components/playlist/ml_item.cpp b/modules/gui/qt4/components/playlist/ml_item.cpp
index a4eebcc..15ffc30 100644
--- a/modules/gui/qt4/components/playlist/ml_item.cpp
+++ b/modules/gui/qt4/components/playlist/ml_item.cpp
@@ -1,5 +1,5 @@
 /*****************************************************************************
- * ml_item.cpp: the media library's result item
+ * ml_item.cpp: the SQL media library's result item
  *****************************************************************************
  * Copyright (C) 2008-2011 the VideoLAN Team and AUTHORS
  * $Id$
@@ -29,7 +29,7 @@
 # include <config.h>
 #endif
 
-#ifdef MEDIA_LIBRARY
+#ifdef SQL_MEDIA_LIBRARY
 
 #include <QDateTime>
 #include <QUrl>
diff --git a/modules/gui/qt4/components/playlist/ml_item.hpp b/modules/gui/qt4/components/playlist/ml_item.hpp
index 3a2c282..34452ed 100644
--- a/modules/gui/qt4/components/playlist/ml_item.hpp
+++ b/modules/gui/qt4/components/playlist/ml_item.hpp
@@ -1,5 +1,5 @@
 /*****************************************************************************
- * ml_item.hpp: the media library's result item
+ * ml_item.hpp: the SQL media library's result item
  *****************************************************************************
  * Copyright (C) 2008-2011 the VideoLAN Team and AUTHORS
  * $Id$
@@ -32,7 +32,7 @@
 # include <config.h>
 #endif
 
-#ifdef MEDIA_LIBRARY
+#ifdef SQL_MEDIA_LIBRARY
 
 #include <vlc_common.h>
 #include <vlc_interface.h>
diff --git a/modules/gui/qt4/components/playlist/ml_model.cpp b/modules/gui/qt4/components/playlist/ml_model.cpp
index 83ad7db..a33a4ea 100644
--- a/modules/gui/qt4/components/playlist/ml_model.cpp
+++ b/modules/gui/qt4/components/playlist/ml_model.cpp
@@ -1,5 +1,5 @@
 /*****************************************************************************
- * ml_model.cpp: the media library's model
+ * ml_model.cpp: the SQL media library's model
  *****************************************************************************
  * Copyright (C) 2008-2011 the VideoLAN Team and AUTHORS
  * $Id$
@@ -29,7 +29,7 @@
 # include <config.h>
 #endif
 
-#ifdef MEDIA_LIBRARY
+#ifdef SQL_MEDIA_LIBRARY
 
 #include <QUrl>
 #include <QMenu>
diff --git a/modules/gui/qt4/components/playlist/ml_model.hpp b/modules/gui/qt4/components/playlist/ml_model.hpp
index 6de538f..b8e02cb 100644
--- a/modules/gui/qt4/components/playlist/ml_model.hpp
+++ b/modules/gui/qt4/components/playlist/ml_model.hpp
@@ -1,5 +1,5 @@
 /*****************************************************************************
- * ml_model.hpp ML model
+ * ml_model.hpp SQL ML model
  *****************************************************************************
  * Copyright (C) 2008-2011 the VideoLAN Team and AUTHORS
  * $Id$
@@ -32,7 +32,7 @@
 # include <config.h>
 #endif
 
-#ifdef MEDIA_LIBRARY
+#ifdef SQL_MEDIA_LIBRARY
 #include <vlc_common.h>
 #include <vlc_interface.h>
 #include <vlc_media_library.h>
diff --git a/modules/gui/qt4/components/playlist/playlist.cpp b/modules/gui/qt4/components/playlist/playlist.cpp
index e99afc0..7c092d6 100644
--- a/modules/gui/qt4/components/playlist/playlist.cpp
+++ b/modules/gui/qt4/components/playlist/playlist.cpp
@@ -100,7 +100,7 @@ PlaylistWidget::PlaylistWidget( intf_thread_t *_p_i, QWidget *_par )
     model->setModel( VLCProxyModel::PL_MODEL, plmodel );
     model->switchToModel( VLCProxyModel::PL_MODEL );
 
-#ifdef MEDIA_LIBRARY
+#ifdef SQL_MEDIA_LIBRARY
     MLModel *mlmodel = new MLModel( p_intf, model );
     model->setModel( VLCProxyModel::SQLML_MODEL, mlmodel );
 #endif
diff --git a/modules/gui/qt4/components/playlist/selector.cpp b/modules/gui/qt4/components/playlist/selector.cpp
index 17fe64b..db26105 100644
--- a/modules/gui/qt4/components/playlist/selector.cpp
+++ b/modules/gui/qt4/components/playlist/selector.cpp
@@ -240,7 +240,7 @@ void PLSelector::createItems()
     ml->treeItem()->setData( 0, SPECIAL_ROLE, QVariant( IS_ML ) );
     ml->treeItem()->setData( 0, Qt::DecorationRole, QIcon( ":/sidebar/library" ) );
 
-#ifdef MEDIA_LIBRARY
+#ifdef SQL_MEDIA_LIBRARY
     /* SQL ML */
     ml = addItem( SQL_ML_TYPE, "SQL Media Library" )->treeItem();
     ml->treeItem()->setData( 0, Qt::DecorationRole, QIcon( ":/sidebar/library" ) );
@@ -377,7 +377,7 @@ void PLSelector::setSource( QTreeWidgetItem *item )
                 item->setData( 0, CAP_SEARCH_ROLE, true );
         }
     }
-#ifdef MEDIA_LIBRARY
+#ifdef SQL_MEDIA_LIBRARY
     else if( i_type == SQL_ML_TYPE )
     {
         emit categoryActivated( NULL, true );
diff --git a/modules/gui/qt4/components/playlist/standardpanel.cpp b/modules/gui/qt4/components/playlist/standardpanel.cpp
index dc7a42c..f528dfa 100644
--- a/modules/gui/qt4/components/playlist/standardpanel.cpp
+++ b/modules/gui/qt4/components/playlist/standardpanel.cpp
@@ -454,7 +454,7 @@ void StandardPLPanel::searchDelayed( const QString& searchText )
 /* This activated by the selector selection */
 void StandardPLPanel::setRootItem( playlist_item_t *p_item, bool b )
 {
-#ifdef MEDIA_LIBRARY
+#ifdef SQL_MEDIA_LIBRARY
     if( b )
     {
         msg_Dbg( p_intf, "Setting the SQL ML" );
diff --git a/modules/gui/qt4/components/simple_preferences.cpp b/modules/gui/qt4/components/simple_preferences.cpp
index a66c256..97b7223 100644
--- a/modules/gui/qt4/components/simple_preferences.cpp
+++ b/modules/gui/qt4/components/simple_preferences.cpp
@@ -568,7 +568,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
 #else
             ui.osGroupBox->hide();
 #endif
-#ifdef MEDIA_LIBRARY
+#ifdef SQL_MEDIA_LIBRARY
             BUTTONACT( ui.sqlMLbtn, configML() );
 #else
             ui.sqlMLbtn->hide();
@@ -986,7 +986,7 @@ void SPrefsPanel::changeStyle( QString s_style )
 
 void SPrefsPanel::configML()
 {
-#ifdef MEDIA_LIBRARY
+#ifdef SQL_MEDIA_LIBRARY
     MLConfDialog *mld = new MLConfDialog( this, p_intf );
     mld->exec();
     delete mld;
diff --git a/modules/gui/qt4/dialogs/ml_configuration.cpp b/modules/gui/qt4/dialogs/ml_configuration.cpp
index 6b56c8b..68933d8 100644
--- a/modules/gui/qt4/dialogs/ml_configuration.cpp
+++ b/modules/gui/qt4/dialogs/ml_configuration.cpp
@@ -1,5 +1,5 @@
 /*****************************************************************************
- * ml_configuration.cpp: ML's configuration dialog (folder view)
+ * ml_configuration.cpp: SQL ML's configuration dialog (folder view)
  *****************************************************************************
  * Copyright (C) 2008-2010 the VideoLAN Team and AUTHORS
  * $Id$
@@ -28,7 +28,7 @@
 # include <config.h>
 #endif
 
-#ifdef MEDIA_LIBRARY
+#ifdef SQL_MEDIA_LIBRARY
 
 #include "ml_configuration.hpp"
 
diff --git a/modules/gui/qt4/dialogs/ml_configuration.hpp b/modules/gui/qt4/dialogs/ml_configuration.hpp
index 145d279..878426b 100644
--- a/modules/gui/qt4/dialogs/ml_configuration.hpp
+++ b/modules/gui/qt4/dialogs/ml_configuration.hpp
@@ -1,5 +1,5 @@
 /*****************************************************************************
- * ml_configuration.hpp: ML's configuration dialog (folder view)
+ * ml_configuration.hpp: SQL ML's configuration dialog (folder view)
  *****************************************************************************
  * Copyright (C) 2008-2010 the VideoLAN Team and AUTHORS
  * $Id$
@@ -32,7 +32,7 @@
 # include <config.h>
 #endif
 
-#ifdef MEDIA_LIBRARY
+#ifdef SQL_MEDIA_LIBRARY
 
 #include <vlc_common.h>
 #include <vlc_media_library.h>



More information about the vlc-commits mailing list