Skip to content

Commit 8003c41

Browse files
committed
Qt: clean up includes and forward declare when possible
1 parent a3cec8a commit 8003c41

File tree

11 files changed

+30
-20
lines changed

11 files changed

+30
-20
lines changed

modules/gui/qt4/components/epg/EPGChannels.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
* 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
2121
*****************************************************************************/
2222

23+
#include "qt4.hpp"
24+
25+
#include <vlc_epg.h>
26+
2327
#include "EPGChannels.hpp"
2428
#include "EPGView.hpp"
2529

modules/gui/qt4/components/epg/EPGItem.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,8 @@
2424
#include <QTransform>
2525
#include <QFont>
2626
#include <QFontMetrics>
27-
#include <QDebug>
2827
#include <QDateTime>
2928
#include <QFocusEvent>
30-
#include <QGraphicsScene>
3129
#include <QStyleOptionGraphicsItem>
3230
#include <QGraphicsSceneHoverEvent>
3331
#include <QStyle>

modules/gui/qt4/components/epg/EPGItem.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232

3333
class QPainter;
3434
class QString;
35-
3635
class EPGView;
3736

3837
class EPGItem : public QGraphicsItem

modules/gui/qt4/components/epg/EPGView.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
* 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
2222
*****************************************************************************/
2323

24+
#include "qt4.hpp"
25+
26+
#include <vlc_epg.h>
27+
2428
#include "EPGView.hpp"
2529
#include "EPGItem.hpp"
2630

modules/gui/qt4/components/epg/EPGView.hpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
2424
#ifndef EPGVIEW_H
2525
#define EPGVIEW_H
2626

27-
#include "EPGItem.hpp"
27+
#include "qt4.hpp"
28+
29+
#include <vlc_epg.h>
2830

2931
#include <QGraphicsView>
3032
#include <QGraphicsScene>
@@ -33,6 +35,8 @@
3335
#include <QMutex>
3436
#include <QDateTime>
3537

38+
class EPGItem;
39+
3640
#define TRACKS_HEIGHT 60
3741

3842
typedef QMap<QDateTime, EPGItem *> EPGEventByTimeQMap;

modules/gui/qt4/components/epg/EPGWidget.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,21 @@
2121
* 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
2222
*****************************************************************************/
2323

24-
#ifdef HAVE_CONFIG_H
25-
# include <config.h>
26-
#endif
24+
#include "qt4.hpp"
2725

28-
#include "EPGWidget.hpp"
26+
#include <vlc_epg.h>
27+
#include "input_manager.hpp"
2928

3029
#include <QStackedWidget>
3130
#include <QVBoxLayout>
3231
#include <QScrollBar>
3332
#include <QLabel>
3433
#include <QStringList>
35-
#include "qt4.hpp"
36-
#include "input_manager.hpp"
37-
#include <vlc_common.h>
38-
#include <vlc_epg.h>
34+
35+
#include "EPGWidget.hpp"
36+
#include "EPGRuler.hpp"
37+
#include "EPGView.hpp"
38+
#include "EPGChannels.hpp"
3939

4040
EPGWidget::EPGWidget( QWidget *parent ) : QWidget( parent )
4141
{

modules/gui/qt4/components/epg/EPGWidget.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@
2424
#ifndef EPGWIDGET_H
2525
#define EPGWIDGET_H
2626

27-
#include "EPGView.hpp"
28-
#include "EPGItem.hpp"
29-
#include "EPGRuler.hpp"
30-
#include "EPGChannels.hpp"
31-
3227
#include <vlc_common.h>
3328
#include <vlc_epg.h>
3429

3530
#include <QWidget>
3631
#include <QStackedWidget>
3732

33+
class EPGView;
34+
class EPGItem;
35+
class EPGRuler;
36+
class EPGChannels;
37+
3838
class EPGWidget : public QWidget
3939
{
4040
Q_OBJECT

modules/gui/qt4/components/playlist/playlist_model.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@
3939

4040
#include <assert.h>
4141
#include <QFont>
42-
#include <QTimer>
4342
#include <QAction>
44-
#include <QBuffer>
4543

4644
/*************************************************************************
4745
* Playlist model implementation

modules/gui/qt4/dialogs/epg.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#include "dialogs/epg.hpp"
2828

2929
#include "components/epg/EPGWidget.hpp"
30+
#include "components/epg/EPGItem.hpp"
3031
#include <vlc_playlist.h>
3132

3233
#include <QVBoxLayout>
@@ -37,6 +38,7 @@
3738
#include <QTextEdit>
3839
#include <QDialogButtonBox>
3940
#include <QTimer>
41+
#include <QDateTime>
4042

4143
#include "qt4.hpp"
4244
#include "input_manager.hpp"

modules/gui/qt4/util/input_slider.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#include "qt4.hpp"
3131

3232
#include "util/input_slider.hpp"
33+
#include "util/timetooltip.hpp"
3334
#include "adapters/seekpoints.hpp"
3435

3536
#include <QPaintEvent>

0 commit comments

Comments
 (0)