]> git.sesse.net Git - vlc/commitdiff
Qt: remove unnecessary includes
authorJean-Baptiste Kempf <jb@videolan.org>
Mon, 19 May 2014 11:40:24 +0000 (13:40 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 19 May 2014 12:46:58 +0000 (14:46 +0200)
modules/gui/qt4/components/info_panels.cpp
modules/gui/qt4/components/info_panels.hpp
modules/gui/qt4/input_manager.cpp
modules/gui/qt4/util/input_slider.hpp

index fcc4f4e7a7757daa076266a5c293a3c14fba616e..989f1386dbfab2906c5c1df3400387df365b0d5a 100644 (file)
 #include <QSpinBox>
 #include <QTextEdit>
 
+static inline void setSpinBounds( QSpinBox *spinbox ) {
+    spinbox->setRange( 0, INT_MAX );
+    spinbox->setAccelerated( true );
+    spinbox->setAlignment( Qt::AlignRight );
+    spinbox->setSpecialValueText("");
+}
+
+
 /************************************************************************
  * Single panels
  ************************************************************************/
index e7d7617edae2e6d8267a3503ef2ed39d990a34b8..90c7b4a0654bf9ce2425bd33948a7f87124d446b 100644 (file)
 #endif
 
 #include <vlc_common.h>
-#include <vlc_meta.h>
-
 #include <QWidget>
 
-#include <limits.h>
-
-#define setSpinBounds( spinbox ) {               \
-    spinbox->setRange( 0, INT_MAX );             \
-    spinbox->setAccelerated( true ) ;            \
-    spinbox->setAlignment( Qt::AlignRight );     \
-    spinbox->setSpecialValueText(""); }
-
 class QTreeWidget;
 class QTreeWidgetItem;
-class QTreeView;
 class QSpinBox;
 class QLineEdit;
 class CoverArtLabel;
index c8067ef12c1cbf0c29c654effe87dd43aed34871..affb694bda73eb29c801f5f44bf72bee20537440 100644 (file)
 
 #include "input_manager.hpp"
 #include "recents.hpp"
-#include <vlc_keys.h>
-#include <vlc_url.h>
-#include <vlc_strings.h>
-#include <vlc_aout.h>
+
+#include <vlc_keys.h>           /* ACTION_ID */
+#include <vlc_url.h>            /* decode_URI */
+#include <vlc_strings.h>        /* str_format_meta */
+#include <vlc_aout.h>           /* audio_output_t */
 
 #include <QApplication>
 #include <QFile>
index 4b76966fadcad58ca0b27b0ed582dbf5140cb23d..873b729993342badc538a76fd0f0cee34473aee9 100644 (file)
@@ -30,7 +30,6 @@
 # include "config.h"
 #endif
 
-#include <vlc_common.h>
 #include "timetooltip.hpp"
 #include "styles/seekstyle.hpp"