[vlmc-devel] commit: Build fix for Qt version < 4.6 (Ludovic Fauvet )
git at videolan.org
git at videolan.org
Sun Mar 21 16:57:01 CET 2010
vlmc | branch: master | Ludovic Fauvet <etix at l0cal.com> | Sun Mar 21 16:50:51 2010 +0100| [e1a564935a83b152b6f2f6dae99d95232a4e0279] | committer: Ludovic Fauvet
Build fix for Qt version < 4.6
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=e1a564935a83b152b6f2f6dae99d95232a4e0279
---
src/Gui/timeline/AbstractGraphicsMediaItem.h | 4 ++++
src/Gui/timeline/GraphicsCursorItem.h | 4 ++++
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/Gui/timeline/AbstractGraphicsMediaItem.h b/src/Gui/timeline/AbstractGraphicsMediaItem.h
index 4794fdd..ffda4f2 100644
--- a/src/Gui/timeline/AbstractGraphicsMediaItem.h
+++ b/src/Gui/timeline/AbstractGraphicsMediaItem.h
@@ -40,7 +40,11 @@ class GraphicsTrack;
class AbstractGraphicsMediaItem : public QObject, public QGraphicsItem
{
Q_OBJECT
+
+#if QT_VERSION >= 0x40600
Q_INTERFACES( QGraphicsItem )
+#endif
+
friend class TracksView;
public:
enum From
diff --git a/src/Gui/timeline/GraphicsCursorItem.h b/src/Gui/timeline/GraphicsCursorItem.h
index b9c959b..371fe4d 100644
--- a/src/Gui/timeline/GraphicsCursorItem.h
+++ b/src/Gui/timeline/GraphicsCursorItem.h
@@ -36,7 +36,11 @@ class QGraphicsSceneMouseEvent;
class GraphicsCursorItem : public QObject, public QGraphicsItem
{
Q_OBJECT
+
+#if QT_VERSION >= 0x40600
Q_INTERFACES( QGraphicsItem )
+#endif
+
public:
GraphicsCursorItem( const QPen& pen );
int cursorPos() const { return ( int )pos().x(); }
More information about the Vlmc-devel
mailing list