[qet] [972] Correction pour permettre la compilation avec Qt < 4.6.x

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 972
Author:   xavier
Date:     2010-04-25 19:34:46 +0200 (Sun, 25 Apr 2010)
Log Message:
-----------
Correction pour permettre la compilation avec Qt < 4.6.x

Modified Paths:
--------------
    branches/0.3/sources/diagramtextitem.cpp

Modified: branches/0.3/sources/diagramtextitem.cpp
===================================================================
--- branches/0.3/sources/diagramtextitem.cpp	2010-04-25 12:57:49 UTC (rev 971)
+++ branches/0.3/sources/diagramtextitem.cpp	2010-04-25 17:34:46 UTC (rev 972)
@@ -33,7 +33,10 @@
 {
 	setDefaultTextColor(Qt::black);
 	setFont(QETApp::diagramTextsFont());
-	setFlags(QGraphicsItem::ItemIsSelectable|QGraphicsItem::ItemIsMovable|QGraphicsItem::ItemSendsGeometryChanges);
+	setFlags(QGraphicsItem::ItemIsSelectable|QGraphicsItem::ItemIsMovable);
+#if QT_VERSION >= 0x040600
+	setFlag(QGraphicsItem::ItemSendsGeometryChanges, true);
+#endif
 	connect(this, SIGNAL(lostFocus()), this, SLOT(setNonFocusable()));
 }
 
@@ -51,7 +54,10 @@
 {
 	setDefaultTextColor(Qt::black);
 	setFont(QETApp::diagramTextsFont());
-	setFlags(QGraphicsItem::ItemIsSelectable|QGraphicsItem::ItemIsMovable|QGraphicsItem::ItemSendsGeometryChanges);
+	setFlags(QGraphicsItem::ItemIsSelectable|QGraphicsItem::ItemIsMovable);
+#if QT_VERSION >= 0x040600
+	setFlag(QGraphicsItem::ItemSendsGeometryChanges, true);
+#endif
 	connect(this, SIGNAL(lostFocus()), this, SLOT(setNonFocusable()));
 }
 


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/