Qt4 - #include cleaning
authorJean-Baptiste Kempf <jb@videolan.org>
Sat, 6 Oct 2007 13:53:53 +0000 (13:53 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 6 Oct 2007 13:53:53 +0000 (13:53 +0000)
modules/gui/qt4/components/complete_preferences.cpp
modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/components/open.cpp
modules/gui/qt4/components/preferences_widgets.cpp
modules/gui/qt4/components/simple_preferences.cpp
modules/gui/qt4/qt4.hpp
modules/gui/qt4/util/qvlcframe.hpp

index 6ffa19b..ed4b4f1 100644 (file)
@@ -39,7 +39,6 @@
 
 #include "components/complete_preferences.hpp"
 #include "components/preferences_widgets.hpp"
-#include "qt4.hpp"
 
 #include <vlc_config_cat.h>
 #include <vlc_intf_strings.h>
index 4663c15..2652fed 100644 (file)
@@ -24,7 +24,6 @@
  *****************************************************************************/
 
 #include "dialogs_provider.hpp"
-#include "qt4.hpp"
 #include "components/interface_widgets.hpp"
 #include "main_interface.hpp"
 #include "input_manager.hpp"
index 76a959b..380c5fe 100644 (file)
@@ -91,7 +91,7 @@ FileOpenPanel::FileOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
 
     /* Ugly hacks to get the good Widget */
     //This lineEdit is the normal line in the fileDialog.
-#if QT43
+#if HAS_QT43
     lineFileEdit = findChildren<QLineEdit*>()[2];
 #else
     lineFileEdit = findChildren<QLineEdit*>()[3];
index bf28940..ad7a2e2 100644 (file)
@@ -34,7 +34,6 @@
 
 #include "components/preferences_widgets.hpp"
 #include "util/customwidgets.hpp"
-#include "qt4.hpp"
 
 #include <vlc_keys.h>
 
index ee85082..db0b712 100644 (file)
@@ -25,7 +25,6 @@
 
 #include "components/simple_preferences.hpp"
 #include "components/preferences_widgets.hpp"
-#include "qt4.hpp"
 
 #include "ui/sprefs_audio.h"
 #include "ui/sprefs_input.h"
index 3c2de02..ff3079c 100644 (file)
 
 #include <QEvent>
 
-#define QT43 ( QT_VERSION >= 0x040300 )
+#define HAS_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;
@@ -114,16 +113,4 @@ public:
     intf_dialog_args_t *p_arg;
 };
 
-/* Ugly to put it here, but don't want more files ... */
-#if 0
-#include <QFrame>
-class BasePlaylistWidget : public QFrame
-{
-public:
-    BasePlaylistWidget( intf_thread_t *_p_i ) : p_intf( _p_i)  {};
-    virtual ~BasePlaylistWidget() {};
-protected:
-    intf_thread_t *p_intf;
-};
-#endif
 #endif
index 262bb45..03a5db7 100644 (file)
@@ -34,6 +34,7 @@
 #include <QPlastiqueStyle>
 #include <QPushButton>
 #include <QKeyEvent>
+
 #include "qt4.hpp"
 #include <vlc/vlc.h>
 #include <vlc_charset.h>