Improve sub-sub-menu handling
This commit is contained in:
parent
700c10ef1f
commit
8099c16b57
|
@ -1,3 +1,6 @@
|
|||
2015-12-12 Markus Gans <guru.mail@muenster.de>
|
||||
* Improve sub-sub-menu handling
|
||||
|
||||
2015-12-10 Markus Gans <guru.mail@muenster.de>
|
||||
* PC encoding: Avoid to print ASCII sign 0x00..0x1f in xterm
|
||||
* Newfont Bullet sign
|
||||
|
|
|
@ -290,8 +290,8 @@ bool FMenu::containsMenuStructure (int x, int y) const
|
|||
|
||||
if ( getGeometryGlobal().contains(x,y) )
|
||||
return true;
|
||||
else if ( si && si->hasMenu() )
|
||||
return si->getMenu()->getGeometryGlobal().contains(x,y);
|
||||
else if ( si && si->hasMenu() && open_sub_menu )
|
||||
return si->getMenu()->containsMenuStructure(x,y);
|
||||
else if ( item && item->getGeometryGlobal().contains(x,y) )
|
||||
return true;
|
||||
else
|
||||
|
@ -1207,6 +1207,7 @@ void FMenu::onMouseMove (FMouseEvent* ev)
|
|||
setClickedWidget(open_sub_menu);
|
||||
open_sub_menu->onMouseMove(_ev);
|
||||
delete _ev;
|
||||
return;
|
||||
}
|
||||
else if ( ! mouse_over_menu && mouse_over_supermenu )
|
||||
{
|
||||
|
@ -1219,6 +1220,7 @@ void FMenu::onMouseMove (FMouseEvent* ev)
|
|||
setClickedWidget(smenu);
|
||||
smenu->onMouseMove(_ev);
|
||||
delete _ev;
|
||||
return;
|
||||
}
|
||||
else if ( mouse_over_menubar )
|
||||
{
|
||||
|
@ -1233,6 +1235,7 @@ void FMenu::onMouseMove (FMouseEvent* ev)
|
|||
mbar->mouse_down = true;
|
||||
mbar->onMouseMove(_ev);
|
||||
delete _ev;
|
||||
return;
|
||||
}
|
||||
else if ( ! hasSelectedItem() && statusBar() && mouse_over_menu )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue