Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Vcsn
Vaucanson 1
Commits
39e7b66a
Commit
39e7b66a
authored
Aug 06, 2009
by
Florent D'Halluin
Browse files
[yavgui] Allow transition adjustement with left click only.
* yavgui/src/g_transition.cc: Do that.
parent
fdf01c5f
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
39e7b66a
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.
...
...
yavgui/src/g_transition.cc
View file @
39e7b66a
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment