[vlc-devel] commit: Qt: EPG, include orders (Jean-Baptiste Kempf )

git version control git at videolan.org
Thu Jan 28 01:38:48 CET 2010


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Jan 27 01:17:39 2010 +0100| [541836cdf89dc38053eaeab1373612a773b498fa] | committer: Jean-Baptiste Kempf 

Qt: EPG, include orders

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

 modules/gui/qt4/components/epg/EPGEvent.hpp  |    2 +-
 modules/gui/qt4/components/epg/EPGItem.cpp   |    1 +
 modules/gui/qt4/components/epg/EPGItem.hpp   |    7 ++++---
 modules/gui/qt4/components/epg/EPGRuler.cpp  |    1 +
 modules/gui/qt4/components/epg/EPGView.cpp   |    4 +++-
 modules/gui/qt4/components/epg/EPGView.hpp   |    6 +++---
 modules/gui/qt4/components/epg/EPGWidget.cpp |    5 +++--
 modules/gui/qt4/components/epg/EPGWidget.hpp |   16 ++++++++--------
 8 files changed, 24 insertions(+), 18 deletions(-)

diff --git a/modules/gui/qt4/components/epg/EPGEvent.hpp b/modules/gui/qt4/components/epg/EPGEvent.hpp
index 87e5d0b..1296f7b 100644
--- a/modules/gui/qt4/components/epg/EPGEvent.hpp
+++ b/modules/gui/qt4/components/epg/EPGEvent.hpp
@@ -24,7 +24,7 @@
 #ifndef EPGEVENT_H
 #define EPGEVENT_H
 
-#include <QString>
+class QString;
 #include <QDateTime>
 
 class EPGEvent
diff --git a/modules/gui/qt4/components/epg/EPGItem.cpp b/modules/gui/qt4/components/epg/EPGItem.cpp
index ecacbe8..c18ae55 100644
--- a/modules/gui/qt4/components/epg/EPGItem.cpp
+++ b/modules/gui/qt4/components/epg/EPGItem.cpp
@@ -25,6 +25,7 @@
 #include <QFont>
 #include <QFontMetrics>
 #include <QDebug>
+#include <QDateTime>
 
 #include "EPGItem.hpp"
 #include "EPGView.hpp"
diff --git a/modules/gui/qt4/components/epg/EPGItem.hpp b/modules/gui/qt4/components/epg/EPGItem.hpp
index 035e97b..7a1c3b5 100644
--- a/modules/gui/qt4/components/epg/EPGItem.hpp
+++ b/modules/gui/qt4/components/epg/EPGItem.hpp
@@ -26,9 +26,10 @@
 
 #include <QObject>
 #include <QGraphicsItem>
-#include <QPainter>
-#include <QString>
-#include <QDateTime>
+
+class QPainter;
+class QString;
+class QDateTime;
 
 class EPGView;
 
diff --git a/modules/gui/qt4/components/epg/EPGRuler.cpp b/modules/gui/qt4/components/epg/EPGRuler.cpp
index 7cadd6e..c37e2e5 100644
--- a/modules/gui/qt4/components/epg/EPGRuler.cpp
+++ b/modules/gui/qt4/components/epg/EPGRuler.cpp
@@ -27,6 +27,7 @@
 #include <QFont>
 #include <QPaintEvent>
 #include <QtDebug>
+#include <QDateTime>
 
 EPGRuler::EPGRuler( QWidget* parent )
     : QWidget( parent )
diff --git a/modules/gui/qt4/components/epg/EPGView.cpp b/modules/gui/qt4/components/epg/EPGView.cpp
index 95d2c3a..a87201d 100644
--- a/modules/gui/qt4/components/epg/EPGView.cpp
+++ b/modules/gui/qt4/components/epg/EPGView.cpp
@@ -21,9 +21,11 @@
  * 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
-#include <QMatrix>
 #include "EPGView.hpp"
 #include "EPGItem.hpp"
+
+#include <QDateTime>
+#include <QMatrix>
 #include <QtDebug>
 
 EPGView::EPGView( QWidget *parent ) : QGraphicsView( parent )
diff --git a/modules/gui/qt4/components/epg/EPGView.hpp b/modules/gui/qt4/components/epg/EPGView.hpp
index d40536e..3e4bb19 100644
--- a/modules/gui/qt4/components/epg/EPGView.hpp
+++ b/modules/gui/qt4/components/epg/EPGView.hpp
@@ -24,14 +24,14 @@
 #ifndef EPGVIEW_H
 #define EPGVIEW_H
 
+#include "EPGEvent.hpp"
+
 #include <QGraphicsView>
-#include <QVBoxLayout>
 #include <QList>
 
-#include "EPGEvent.hpp"
-
 #define TRACKS_HEIGHT 75
 
+class QDateTime;
 class EPGView : public QGraphicsView
 {
 Q_OBJECT
diff --git a/modules/gui/qt4/components/epg/EPGWidget.cpp b/modules/gui/qt4/components/epg/EPGWidget.cpp
index 3c8b4ea..df06262 100644
--- a/modules/gui/qt4/components/epg/EPGWidget.cpp
+++ b/modules/gui/qt4/components/epg/EPGWidget.cpp
@@ -21,11 +21,12 @@
  * 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
+#include "EPGWidget.hpp"
+
 #include <QGridLayout>
 #include <QScrollBar>
 #include <QDebug>
-
-#include "EPGWidget.hpp"
+#include <QLabel>
 
 ChannelsWidget::ChannelsWidget( QWidget *parent ) : QWidget( parent )
 {
diff --git a/modules/gui/qt4/components/epg/EPGWidget.hpp b/modules/gui/qt4/components/epg/EPGWidget.hpp
index 82f8574..358c856 100644
--- a/modules/gui/qt4/components/epg/EPGWidget.hpp
+++ b/modules/gui/qt4/components/epg/EPGWidget.hpp
@@ -24,12 +24,6 @@
 #ifndef EPGWIDGET_H
 #define EPGWIDGET_H
 
-#include <QWidget>
-#include <QMap>
-#include <QMultiMap>
-#include <QDateTime>
-#include <QLabel>
-
 #include "EPGView.hpp"
 #include "EPGEvent.hpp"
 #include "EPGRuler.hpp"
@@ -37,16 +31,22 @@
 #include <vlc_common.h>
 #include <vlc_epg.h>
 
+#include <QWidget>
+#include <QMultiMap>
+
+class QDateTime;
+class QLabel;
+
 class ChannelsWidget : public QWidget
 {
-Q_OBJECT
+    Q_OBJECT
 public:
     explicit ChannelsWidget( QWidget* parent = 0 );
 };
 
 class EPGWidget : public QWidget
 {
-Q_OBJECT
+    Q_OBJECT
 public:
     explicit EPGWidget( QWidget* parent = 0 );
 




More information about the vlc-devel mailing list