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

[FIX] - network items can also be selected by right-clicking them

parent 6886e7d7
......@@ -182,6 +182,12 @@ void WQtNetworkItem::mouseMoveEvent( QGraphicsSceneMouseEvent *mouseEvent )
m_networkEditor->itemMoved();
}
void WQtNetworkItem::mousePressEvent ( QGraphicsSceneMouseEvent *event )
{
setSelected(true);
return QGraphicsItem::mousePressEvent( event );
}
QVariant WQtNetworkItem::itemChange( GraphicsItemChange change,
const QVariant &value )
{
......
......@@ -162,6 +162,11 @@ protected:
*/
void mouseMoveEvent( QGraphicsSceneMouseEvent* mouseEvent );
/**
* TODO(rfrohl)
**/
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