Commit 2cb1c36f authored by Robert Frohl's avatar Robert Frohl
Browse files

[FIX] - involuntary selecting multiple NetworkItems in the NetworkEditor

parent f38a8cec
......@@ -181,12 +181,12 @@ void WQtNetworkItem::mouseMoveEvent( QGraphicsSceneMouseEvent *mouseEvent )
m_networkEditor->itemMoved();
}
void WQtNetworkItem::mousePressEvent ( QGraphicsSceneMouseEvent *event )
void WQtNetworkItem::mousePressEvent( QGraphicsSceneMouseEvent *event )
{
// TODO(rfrohl): select the item in the module tree?
// boost::shared_ptr< WModule > m_module; //!< the module
setSelected(true);
return QGraphicsItem::mousePressEvent( event );
QGraphicsItem::mousePressEvent( event );
setSelected( true );
}
QVariant WQtNetworkItem::itemChange( GraphicsItemChange change,
......
......@@ -168,7 +168,7 @@ protected:
*
* \param event the mouse event
**/
void mousePressEvent ( QGraphicsSceneMouseEvent *event );
void mousePressEvent( QGraphicsSceneMouseEvent *event );
/**
* If the cursor enters the item, the item gets a green color.
......
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