mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-11 23:49:38 -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)
|
void Node::mousePressEvent(QGraphicsSceneMouseEvent *event)
|
||||||
{
|
{
|
||||||
_selected_node = this ;
|
if(event->button() == Qt::LeftButton)
|
||||||
graph->forceRedraw() ;
|
{
|
||||||
|
_selected_node = this ;
|
||||||
|
graph->forceRedraw() ;
|
||||||
|
}
|
||||||
|
|
||||||
update();
|
update();
|
||||||
QGraphicsItem::mousePressEvent(event);
|
QGraphicsItem::mousePressEvent(event);
|
||||||
|
Loading…
Reference in New Issue
Block a user