Mercurial > octave-nkf
comparison libgui/graphics/Figure.cc @ 20630:99eb26310cb3
Update the state of the toolbar after ui* children have been removed
*Figure.cc (Figure::EventNotifyAfter): update the state of the toolbar after an ui* children is removed e.g. by clf.
author | Pantxo Diribarne <pantxo.diribarne@gmail.com> |
---|---|
date | Sat, 10 Oct 2015 12:48:10 +0200 |
parents | 46edfbd31ad7 |
children |
comparison
equal
deleted
inserted
replaced
20629:46edfbd31ad7 | 20630:99eb26310cb3 |
---|---|
721 update (figure::properties::ID_TOOLBAR); | 721 update (figure::properties::ID_TOOLBAR); |
722 | 722 |
723 enableMouseTracking (); | 723 enableMouseTracking (); |
724 } | 724 } |
725 | 725 |
726 case QEvent::ChildRemoved: | |
727 if (dynamic_cast<QChildEvent*> (xevent)->child | |
728 ()->isWidgetType()) | |
729 { | |
730 gh_manager::auto_lock lock; | |
731 update (figure::properties::ID_TOOLBAR); | |
732 } | |
733 | |
726 default: | 734 default: |
727 break; | 735 break; |
728 } | 736 } |
729 } | 737 } |
730 else if (watched == m_menuBar) | 738 else if (watched == m_menuBar) |