do not hide menus when collapsing widget
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@2029 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
2009-02-12 Tobias Doerffel <tobydox/at/users/dot/sourceforge/dot/net>
|
||||
|
||||
* src/gui/fluiq/collapsible_widget.cpp:
|
||||
do not hide menus when collapsing widget
|
||||
|
||||
* src/gui/automation_editor.cpp:
|
||||
* include/automation_editor.h:
|
||||
* include/piano_roll.h:
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
|
||||
|
||||
#include <QtGui/QApplication>
|
||||
#include <QtGui/QMenu>
|
||||
#include <QtGui/QMouseEvent>
|
||||
#include <QtGui/QPainter>
|
||||
|
||||
@@ -397,7 +398,8 @@ void FLUIQ::CollapsibleWidget::collapse( void )
|
||||
// hide all children
|
||||
foreach( QWidget * w, findChildren<QWidget *>() )
|
||||
{
|
||||
if( w != m_header && w->parentWidget() == this )
|
||||
if( w != m_header && w->parentWidget() == this &&
|
||||
qobject_cast<QMenu *>( w ) == NULL )
|
||||
{
|
||||
w->hide();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user