[qet] [1160] Fixed two compile time warnings.

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


Revision: 1160
Author:   xavier
Date:     2011-02-20 20:43:26 +0100 (Sun, 20 Feb 2011)
Log Message:
-----------
Fixed two compile time warnings.

Modified Paths:
--------------
    branches/0.3/sources/editor/customelementgraphicpart.cpp
    branches/0.3/sources/element.h

Modified: branches/0.3/sources/editor/customelementgraphicpart.cpp
===================================================================
--- branches/0.3/sources/editor/customelementgraphicpart.cpp	2011-02-19 17:38:53 UTC (rev 1159)
+++ branches/0.3/sources/editor/customelementgraphicpart.cpp	2011-02-20 19:43:26 UTC (rev 1160)
@@ -153,22 +153,16 @@
 	@param value Valeur a attribuer a la propriete
 */
 void CustomElementGraphicPart::setProperty(const QString &property, const QVariant &value) {
-	bool change_made = false;
 	if (property == "line-style") {
 		setLineStyle(static_cast<LineStyle>(value.toInt()));
-		change_made = true;
 	} else if (property == "line-weight") {
 		setLineWeight(static_cast<LineWeight>(value.toInt()));
-		change_made = true;
 	} else if (property == "filling") {
 		setFilling(static_cast<Filling>(value.toInt()));
-		change_made = true;
 	} else if (property == "color") {
 		setColor(static_cast<Color>(value.toInt()));
-		change_made = true;
 	} else if (property == "antialias") {
 		setAntialiased(value.toBool());
-		change_made = true;
 	}
 }
 

Modified: branches/0.3/sources/element.h
===================================================================
--- branches/0.3/sources/element.h	2011-02-19 17:38:53 UTC (rev 1159)
+++ branches/0.3/sources/element.h	2011-02-20 19:43:26 UTC (rev 1160)
@@ -28,6 +28,7 @@
 class Element : public QObject, public QGraphicsItem {
 	
 	Q_OBJECT
+	Q_INTERFACES(QGraphicsItem)
 	
 	// constructeurs, destructeur
 	public:


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