mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 23:20:52 +01:00
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:
@@ -153,22 +153,16 @@ void CustomElementGraphicPart::applyStylesToQPainter(QPainter &painter) const {
|
|||||||
@param value Valeur a attribuer a la propriete
|
@param value Valeur a attribuer a la propriete
|
||||||
*/
|
*/
|
||||||
void CustomElementGraphicPart::setProperty(const QString &property, const QVariant &value) {
|
void CustomElementGraphicPart::setProperty(const QString &property, const QVariant &value) {
|
||||||
bool change_made = false;
|
|
||||||
if (property == "line-style") {
|
if (property == "line-style") {
|
||||||
setLineStyle(static_cast<LineStyle>(value.toInt()));
|
setLineStyle(static_cast<LineStyle>(value.toInt()));
|
||||||
change_made = true;
|
|
||||||
} else if (property == "line-weight") {
|
} else if (property == "line-weight") {
|
||||||
setLineWeight(static_cast<LineWeight>(value.toInt()));
|
setLineWeight(static_cast<LineWeight>(value.toInt()));
|
||||||
change_made = true;
|
|
||||||
} else if (property == "filling") {
|
} else if (property == "filling") {
|
||||||
setFilling(static_cast<Filling>(value.toInt()));
|
setFilling(static_cast<Filling>(value.toInt()));
|
||||||
change_made = true;
|
|
||||||
} else if (property == "color") {
|
} else if (property == "color") {
|
||||||
setColor(static_cast<Color>(value.toInt()));
|
setColor(static_cast<Color>(value.toInt()));
|
||||||
change_made = true;
|
|
||||||
} else if (property == "antialias") {
|
} else if (property == "antialias") {
|
||||||
setAntialiased(value.toBool());
|
setAntialiased(value.toBool());
|
||||||
change_made = true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ class ElementTextItem;
|
|||||||
class Element : public QObject, public QGraphicsItem {
|
class Element : public QObject, public QGraphicsItem {
|
||||||
|
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
Q_INTERFACES(QGraphicsItem)
|
||||||
|
|
||||||
// constructeurs, destructeur
|
// constructeurs, destructeur
|
||||||
public:
|
public:
|
||||||
|
|||||||
Reference in New Issue
Block a user