mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-10 07:59:58 +01:00
Remove unnecessary method
This commit is contained in:
@@ -1264,24 +1264,6 @@ void CustomElementGraphicPart::drawShadowShape(QPainter *painter)
|
|||||||
painter -> restore ();
|
painter -> restore ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
@brief CustomElementGraphicPart::itemChange
|
|
||||||
Reimplemented from QGraphicsObject.
|
|
||||||
If the item position change call updateCurrentPartEditor()
|
|
||||||
the change is always send to QGraphicsObject
|
|
||||||
@param change
|
|
||||||
@param value
|
|
||||||
@return the returned value of QGraphicsObject::itemChange
|
|
||||||
*/
|
|
||||||
QVariant CustomElementGraphicPart::itemChange(GraphicsItemChange change, const QVariant &value)
|
|
||||||
{
|
|
||||||
if (scene())
|
|
||||||
if (change == QGraphicsItem::ItemPositionChange || change == QGraphicsItem::ItemPositionHasChanged)
|
|
||||||
updateCurrentPartEditor();
|
|
||||||
|
|
||||||
return(QGraphicsObject::itemChange(change, value));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@brief CustomElementGraphicPart::hoverEnterEvent
|
@brief CustomElementGraphicPart::hoverEnterEvent
|
||||||
Reimplemented from QGraphicsObject.
|
Reimplemented from QGraphicsObject.
|
||||||
|
|||||||
@@ -309,8 +309,6 @@ class CustomElementGraphicPart : public QGraphicsObject, public CustomElementPar
|
|||||||
void applyStylesToQPainter(QPainter &) const;
|
void applyStylesToQPainter(QPainter &) const;
|
||||||
void drawShadowShape (QPainter *painter);
|
void drawShadowShape (QPainter *painter);
|
||||||
|
|
||||||
QVariant itemChange(GraphicsItemChange change,
|
|
||||||
const QVariant &value) override;
|
|
||||||
void hoverEnterEvent(QGraphicsSceneHoverEvent *event) override;
|
void hoverEnterEvent(QGraphicsSceneHoverEvent *event) override;
|
||||||
void hoverLeaveEvent(QGraphicsSceneHoverEvent *event) override;
|
void hoverLeaveEvent(QGraphicsSceneHoverEvent *event) override;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user