git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1195 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-06-28 23:33:47 +00:00
parent 363f70da7a
commit de3e2e3d0b
3 changed files with 15 additions and 21 deletions

View File

@@ -1,5 +1,13 @@
2008-06-28 Tobias Doerffel <tobydox/at/users/dot/sourceforge/dot/net>
* plugins/Makefile.am:
* configure.in:
removed SingerBot-references
* plugins/live_tool/live_tool.cpp:
* src/core/tool.cpp:
cleanups
* src/gui/main_window.cpp:
* src/tracks/bb_track.cpp:
* src/tracks/pattern.cpp:

View File

@@ -116,13 +116,8 @@ liveToolView::liveToolView( tool * _tool ) :
"F1-F10 keys mute the first 10 instruments in the "
"Beat+Baseline Editor." ) );
hide();
if( parentWidget() )
{
parentWidget()->hide();
parentWidget()->layout()->setSizeConstraint(
QLayout::SetFixedSize );
}
parentWidget()->hide();
parentWidget()->layout()->setSizeConstraint( QLayout::SetFixedSize );
}

View File

@@ -72,22 +72,13 @@ tool * tool::instantiate( const QString & _plugin_name, model * _parent )
toolView::toolView( tool * _tool ) :
pluginView( _tool, engine::getMainWindow()->workspace() )
pluginView( _tool, NULL )
{
QWidget * window;
if( engine::getMainWindow()->workspace() )
{
engine::getMainWindow()->workspace()->addSubWindow( this );
window = parentWidget();
window->setAttribute( Qt::WA_DeleteOnClose, FALSE );
}
else
{
window = this;
}
engine::getMainWindow()->workspace()->addSubWindow( this );
parentWidget()->setAttribute( Qt::WA_DeleteOnClose, FALSE );
window->setWindowTitle( _tool->publicName() );
window->setWindowIcon( _tool->getDescriptor()->logo->pixmap() );
setWindowTitle( _tool->publicName() );
setWindowIcon( _tool->getDescriptor()->logo->pixmap() );
}