mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-11 15:39:36 -05:00
restrict last commit to left mouse button
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6766 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
1d0c7b2e2f
commit
be2025382b
@ -339,8 +339,11 @@ QVariant Node::itemChange(GraphicsItemChange change, const QVariant &value)
|
||||
|
||||
void Node::mousePressEvent(QGraphicsSceneMouseEvent *event)
|
||||
{
|
||||
_selected_node = this ;
|
||||
graph->forceRedraw() ;
|
||||
if(event->button() == Qt::LeftButton)
|
||||
{
|
||||
_selected_node = this ;
|
||||
graph->forceRedraw() ;
|
||||
}
|
||||
|
||||
update();
|
||||
QGraphicsItem::mousePressEvent(event);
|
||||
|
Loading…
Reference in New Issue
Block a user