]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/qt4.hpp
Qt4: fix compilation. Sorry for the disturbance.
[vlc] / modules / gui / qt4 / qt4.hpp
index 266d4f4a31bb1dcd6ee34e916bdda5deb6d36d01..afbf7e5c52c40870abb859aaed5ffaf9a3f7236e 100644 (file)
 #include <vlc/vlc.h>
 #include <vlc_interface.h>
 #include <vlc_playlist.h>
+
 #include <QEvent>
 
+#define QT43 ( QT_VERSION >= 0x040300 )
+
+/* Add define for duration, VLC_META_ENGINE doesn't include it */
+#define VLC_META_ENGINE_DURATION   0x00000002
+#define VLC_META_DURATION          N_("Duration")
+
+
 class QApplication;
 class QMenu;
 class MainInterface;
@@ -53,7 +61,7 @@ struct intf_sys_t
 #define QPL_UNLOCK vlc_mutex_unlock( &THEPL->object_lock );
 
 #define THEDP DialogsProvider::getInstance()
-#define THEMIM MainInputManager::getInstance( NULL )
+#define THEMIM MainInputManager::getInstance( p_intf )
 
 #define qfu( i ) QString::fromUtf8( i )
 #define qtr( i ) QString::fromUtf8( _(i) )
@@ -102,6 +110,7 @@ public:
 };
 
 /* Ugly to put it here, but don't want more files ... */
+#if 0
 #include <QFrame>
 class BasePlaylistWidget : public QFrame
 {
@@ -111,5 +120,5 @@ public:
 protected:
     intf_thread_t *p_intf;
 };
-
+#endif
 #endif