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
92540851
Commit
92540851
authored
Aug 09, 2009
by
Florent D'Halluin
Browse files
[yavgui] Set ZValue upon (de)selection.
* yavgui/src/g_state.cc, * yavgui/src/g_transition.cc: Do that.
parent
ab19754d
Changes
3
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
92540851
2009-08-09 d-halluin <d-halluin@lrde.epita.fr>
[yavgui] Set ZValue upon (de)selection.
* yavgui/src/g_state.cc,
* yavgui/src/g_transition.cc: Do that.
2009-08-09 d-halluin <d-halluin@lrde.epita.fr>
[yavgui] Ask for alphabet during automaton creation.
...
...
yavgui/src/g_state.cc
View file @
92540851
...
...
@@ -235,7 +235,6 @@ namespace gui
}
if
(
event
->
button
()
==
Qt
::
RightButton
)
{
setZValue
(
1
);
drawing_transition_
=
true
;
mouse_pos_
=
event
->
pos
();
update_bounding_rect_
();
...
...
@@ -251,7 +250,6 @@ namespace gui
if
(
drawing_transition_
)
{
drawing_transition_
=
false
;
setZValue
(
0
);
GState
*
s
=
dynamic_cast
<
GState
*>
(
scene
()
->
itemAt
(
event
->
scenePos
()));
if
(
s
&&
s
!=
this
)
{
...
...
@@ -321,7 +319,7 @@ namespace gui
if
(
selected_
)
return
;
color_
=
highlight_color_
;
setZValue
(
1
);
selected_
=
true
;
update
();
emit
selected
();
...
...
@@ -333,7 +331,7 @@ namespace gui
if
(
!
selected_
)
return
;
color_
=
default_color_
;
setZValue
(
0
);
selected_
=
false
;
update
();
emit
deselected
();
...
...
yavgui/src/g_transition.cc
View file @
92540851
...
...
@@ -404,8 +404,10 @@ namespace gui
void
GTransition
::
select
()
{
if
(
selected_
)
return
;
color_
=
highlight_color_
;
setZValue
(
1
);
selected_
=
true
;
update
();
emit
selected
();
...
...
@@ -414,8 +416,10 @@ namespace gui
void
GTransition
::
deselect
()
{
if
(
!
selected_
)
return
;
color_
=
default_color_
;
setZValue
(
0
);
selected_
=
false
;
update
();
emit
deselected
();
...
...
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