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: