[vlmc-devel] commit: Forward declarations (Ludovic Fauvet )
git at videolan.org
git at videolan.org
Thu Mar 18 02:45:05 CET 2010
vlmc | branch: master | Ludovic Fauvet <etix at l0cal.com> | Thu Mar 18 02:44:19 2010 +0100| [cf060d6a80015592b83e36be90e44209251a422d] | committer: Ludovic Fauvet
Forward declarations
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=cf060d6a80015592b83e36be90e44209251a422d
---
src/Gui/timeline/AbstractGraphicsMediaItem.cpp | 1 +
src/Gui/timeline/GraphicsAudioItem.cpp | 2 ++
src/Gui/timeline/GraphicsCursorItem.cpp | 5 +++++
src/Gui/timeline/GraphicsCursorItem.h | 11 ++++++-----
src/Gui/timeline/GraphicsMovieItem.cpp | 1 +
src/Gui/timeline/TracksScene.cpp | 1 +
6 files changed, 16 insertions(+), 5 deletions(-)
diff --git a/src/Gui/timeline/AbstractGraphicsMediaItem.cpp b/src/Gui/timeline/AbstractGraphicsMediaItem.cpp
index 8beaa96..47cd576 100644
--- a/src/Gui/timeline/AbstractGraphicsMediaItem.cpp
+++ b/src/Gui/timeline/AbstractGraphicsMediaItem.cpp
@@ -22,6 +22,7 @@
#include <QMenu>
#include <QColorDialog>
+#include <QGraphicsSceneContextMenuEvent>
#include "AbstractGraphicsMediaItem.h"
#include "TracksView.h"
#include "TracksScene.h"
diff --git a/src/Gui/timeline/GraphicsAudioItem.cpp b/src/Gui/timeline/GraphicsAudioItem.cpp
index 7ff2cf0..4058137 100644
--- a/src/Gui/timeline/GraphicsAudioItem.cpp
+++ b/src/Gui/timeline/GraphicsAudioItem.cpp
@@ -29,6 +29,8 @@
#include <QPainter>
#include <QLinearGradient>
#include <QTime>
+#include <QGraphicsSceneMouseEvent>
+#include <QGraphicsSceneHoverEvent>
GraphicsAudioItem::GraphicsAudioItem( Clip* clip ) : m_clip( clip )
{
diff --git a/src/Gui/timeline/GraphicsCursorItem.cpp b/src/Gui/timeline/GraphicsCursorItem.cpp
index 9990b0e..a3e422d 100644
--- a/src/Gui/timeline/GraphicsCursorItem.cpp
+++ b/src/Gui/timeline/GraphicsCursorItem.cpp
@@ -22,6 +22,11 @@
#include <QtDebug>
#include <QGraphicsItem>
+#include <QGraphicsSceneMouseEvent>
+#include <QPainter>
+#include <QCursor>
+#include <QPen>
+#include <QRectF>
#include "GraphicsCursorItem.h"
GraphicsCursorItem::GraphicsCursorItem( const QPen& pen ) :
diff --git a/src/Gui/timeline/GraphicsCursorItem.h b/src/Gui/timeline/GraphicsCursorItem.h
index 24ed5be..b9c959b 100644
--- a/src/Gui/timeline/GraphicsCursorItem.h
+++ b/src/Gui/timeline/GraphicsCursorItem.h
@@ -23,14 +23,15 @@
#ifndef GRAPHICSCURSORITEM_H
#define GRAPHICSCURSORITEM_H
+#include "MainWorkflow.h"
#include <QObject>
#include <QGraphicsItem>
#include <QPen>
-#include <QRectF>
-#include <QPainter>
-#include <QCursor>
-#include <QGraphicsSceneMouseEvent>
-#include "MainWorkflow.h"
+
+class QPen;
+class QRectF;
+class QPainter;
+class QGraphicsSceneMouseEvent;
class GraphicsCursorItem : public QObject, public QGraphicsItem
{
diff --git a/src/Gui/timeline/GraphicsMovieItem.cpp b/src/Gui/timeline/GraphicsMovieItem.cpp
index 791a422..848e452 100644
--- a/src/Gui/timeline/GraphicsMovieItem.cpp
+++ b/src/Gui/timeline/GraphicsMovieItem.cpp
@@ -25,6 +25,7 @@
#include <QDebug>
#include <QTime>
#include <QFontMetrics>
+#include <QGraphicsSceneMouseEvent>
#include "Clip.h"
#include "GraphicsMovieItem.h"
diff --git a/src/Gui/timeline/TracksScene.cpp b/src/Gui/timeline/TracksScene.cpp
index 3f8c9b9..e6c1b89 100644
--- a/src/Gui/timeline/TracksScene.cpp
+++ b/src/Gui/timeline/TracksScene.cpp
@@ -22,6 +22,7 @@
#include <QMessageBox>
#include <QKeyEvent>
+#include <QGraphicsSceneContextMenuEvent>
#include "TracksScene.h"
#include "Commands.h"
#include "GraphicsMovieItem.h"
More information about the Vlmc-devel
mailing list