Commit 39e7b66a authored by Florent D'Halluin's avatar Florent D'Halluin
Browse files

[yavgui] Allow transition adjustement with left click only.

* yavgui/src/g_transition.cc: Do that.
parent fdf01c5f
2009-08-06 d-halluin <d-halluin@lrde.epita.fr>
[yavgui] Allow transition adjustement with left click only.
* yavgui/src/g_transition.cc: Do that.
2009-08-06 d-halluin <d-halluin@lrde.epita.fr>
 
[yavgui] Tweak dialog boxes.
......
......@@ -382,20 +382,23 @@ namespace gui
void
GTransition::mouseMoveEvent (QGraphicsSceneMouseEvent* event)
{
if (label_grab_)
if (event->buttons() & Qt::LeftButton)
{
label_point_distance_ -= (event->pos ().y ()
- event->lastPos ().y ()) * 0.05;
if (label_grab_)
{
label_point_distance_ -= (event->pos ().y ()
- event->lastPos ().y ()) * 0.05;
}
else
{
angle_ -= (event->pos ().x ()
- event->lastPos ().x ()) * 0.05;
quad_point_distance_ -= (event->pos ().y ()
- event->lastPos ().y ()) * 0.1;
}
refresh ();
}
else
{
angle_ -= (event->pos ().x ()
- event->lastPos ().x ()) * 0.05;
quad_point_distance_ -= (event->pos ().y ()
- event->lastPos ().y ()) * 0.1;
}
refresh ();
}
void
......
Supports Markdown
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