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
This commit is contained in:
xavier
2011-02-20 19:43:26 +00:00
parent 66f4cc2668
commit b6d9ad0b58
2 changed files with 1 additions and 6 deletions

View File

@@ -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<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;
}
}

View File

@@ -28,6 +28,7 @@ class ElementTextItem;
class Element : public QObject, public QGraphicsItem {
Q_OBJECT
Q_INTERFACES(QGraphicsItem)
// constructeurs, destructeur
public: