mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-06 08:05:18 -04: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
1 changed files with 5 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue