From b6d9ad0b580c9dc6dbeff26c1ee7e781bd19fe2c Mon Sep 17 00:00:00 2001 From: xavier Date: Sun, 20 Feb 2011 19:43:26 +0000 Subject: [PATCH] Fixed two compile time warnings. git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1160 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/editor/customelementgraphicpart.cpp | 6 ------ sources/element.h | 1 + 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/sources/editor/customelementgraphicpart.cpp b/sources/editor/customelementgraphicpart.cpp index ce23fe754..df017a655 100644 --- a/sources/editor/customelementgraphicpart.cpp +++ b/sources/editor/customelementgraphicpart.cpp @@ -153,22 +153,16 @@ void CustomElementGraphicPart::applyStylesToQPainter(QPainter &painter) const { @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(value.toInt())); - change_made = true; } else if (property == "line-weight") { setLineWeight(static_cast(value.toInt())); - change_made = true; } else if (property == "filling") { setFilling(static_cast(value.toInt())); - change_made = true; } else if (property == "color") { setColor(static_cast(value.toInt())); - change_made = true; } else if (property == "antialias") { setAntialiased(value.toBool()); - change_made = true; } } diff --git a/sources/element.h b/sources/element.h index 67fc9dcdb..d4e582312 100644 --- a/sources/element.h +++ b/sources/element.h @@ -28,6 +28,7 @@ class ElementTextItem; class Element : public QObject, public QGraphicsItem { Q_OBJECT + Q_INTERFACES(QGraphicsItem) // constructeurs, destructeur public: