[vlmc-devel] commit: Build fix for Qt 4.5 (Ludovic Fauvet )
git at videolan.org
git at videolan.org
Fri Mar 26 00:04:43 CET 2010
vlmc | branch: master | Ludovic Fauvet <etix at l0cal.com> | Fri Mar 26 00:02:43 2010 +0100| [4aca93d1d9e48152e1fd86339e47187e39fe19e1] | committer: Ludovic Fauvet
Build fix for Qt 4.5
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=4aca93d1d9e48152e1fd86339e47187e39fe19e1
---
src/Gui/timeline/GraphicsCursorItem.cpp | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/Gui/timeline/GraphicsCursorItem.cpp b/src/Gui/timeline/GraphicsCursorItem.cpp
index 47f5e38..728caac 100644
--- a/src/Gui/timeline/GraphicsCursorItem.cpp
+++ b/src/Gui/timeline/GraphicsCursorItem.cpp
@@ -34,8 +34,11 @@ GraphicsCursorItem::GraphicsCursorItem( const QPen& pen ) :
m_pen( pen ), m_mouseDown( false )
{
setFlags( QGraphicsItem::ItemIgnoresTransformations |
- QGraphicsItem::ItemIsMovable |
- QGraphicsItem::ItemSendsGeometryChanges );
+ QGraphicsItem::ItemIsMovable );
+#if QT_VERSION >= 0x040600
+ setFlag( QGraphicsItem::ItemSendsGeometryChanges );
+#endif
+
setCursor( QCursor( Qt::SizeHorCursor ) );
setZValue( 100 );
More information about the Vlmc-devel
mailing list