Skip to content

Commit

Permalink
Merge pull request wang-bin#318 from mwachtler/cleanup_includes
Browse files Browse the repository at this point in the history
Cleanup Qt includes: include the directory name in public headers
  • Loading branch information
wang-bin committed Oct 29, 2014
2 parents 41a176c 1255cd0 commit e417774
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/QtAV/ColorTransform.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 23,7 @@
#define QTAV_COLORTRANSFORM_H

#include <QtCore/QSharedDataPointer>
#include <QMatrix4x4>
#include <QtGui/QMatrix4x4>

// TODO: kernel QGenericMatrix<M,N>
//http://www.graficaobscura.com/matrix/index.html
Expand Down
6 changes: 5 additions & 1 deletion src/QtAV/GraphicsItemRenderer.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 23,11 @@
#define QAV_GRAPHICSITEMRENDERER_H

#include <QtAV/QPainterRenderer.h>
#include <QGraphicsWidget>
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
#include <QtWidgets/QGraphicsWidget>
#else
#include <QtGui/QGraphicsWidget>
#endif

//QGraphicsWidget will lose focus forever if TextItem inserted text. Why?
#define CONFIG_GRAPHICSWIDGET 0
Expand Down
2 changes: 1 addition & 1 deletion src/QtAV/OpenGLVideo.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 25,7 @@
#include <QtAV/QtAV_Global.h>
#include <QtAV/VideoFormat.h>
#include <QtCore/QHash>
#include <QMatrix4x4>
#include <QtGui/QMatrix4x4>
#include <QtCore/QObject>
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
#include <QtGui/QOpenGLContext>
Expand Down
2 changes: 1 addition & 1 deletion src/QtAV/QPainterRenderer.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 23,7 @@
#define QAV_QPAINTERRENDERER_H

#include <QtAV/VideoRenderer.h>
#include <qimage.h>
#include <QtGui/QImage>
//TODO: not abstract.
namespace QtAV {

Expand Down
2 changes: 1 addition & 1 deletion src/QtAV/QtAV_Global.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 24,7 @@
#define QTAV_GLOBAL_H

#include <stdarg.h>
#include <qglobal.h>
#include <QtCore/qglobal.h>
#include "dptr.h"

#if defined(BUILD_QTAV_LIB)
Expand Down
6 changes: 5 additions & 1 deletion src/QtAV/WidgetRenderer.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 23,11 @@
#define QTAV_WIDGETRENDERER_H

#include <QtAV/QPainterRenderer.h>
#include <qwidget.h>
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
#include <QtWidgets/QWidget>
#else
#include <QtGui/QWidget>
#endif

namespace QtAV {

Expand Down

0 comments on commit e417774

Please sign in to comment.