Commit f38a8cec authored by Robert Frohl's avatar Robert Frohl
Browse files

[FIX] - NetworkArrows disappear properly when deleted

parent a60792b4
......@@ -51,6 +51,7 @@ WQtNetworkArrow::~WQtNetworkArrow()
{
m_startPort->removeArrow( this );
m_endPort->removeArrow( this );
this->hide();
}
int WQtNetworkArrow::type() const
......@@ -58,7 +59,6 @@ int WQtNetworkArrow::type() const
return Type;
}
void WQtNetworkArrow::updatePosition()
{
QRectF sRect = m_startPort->rect();
......
......@@ -126,21 +126,21 @@ protected:
* \param option
* \param w
*/
void paint( QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* w );
void paint( QPainter* painter, const QStyleOptionGraphicsItem *option, QWidget *w );
/**
* If the cursor enters the arrow, the arrow becomes geen.
*
* \param event the hover event
*/
void hoverEnterEvent( QGraphicsSceneHoverEvent * event );
void hoverEnterEvent( QGraphicsSceneHoverEvent *event );
/**
* If the cursor leaves the arrow, the arrow gets his default color.
*
* \param event the hover event
*/
void hoverLeaveEvent( QGraphicsSceneHoverEvent * event );
void hoverLeaveEvent( QGraphicsSceneHoverEvent *event );
private:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment