Add basic help to controllerView

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1504 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Paul Giblock
2008-08-27 08:57:12 +00:00
parent 3eeb7b8a76
commit c9bd266479
3 changed files with 16 additions and 1 deletions

View File

@@ -84,6 +84,8 @@ controllerView::controllerView( controller * _model, QWidget * _parent ) :
m_subWindow->hide();
setWhatsThis( tr( "Controllers are able to automate the value of a knob, "
"slider, and other controls." ) );
setModel( _model );
}
@@ -203,6 +205,14 @@ void controllerView::contextMenuEvent( QContextMenuEvent * )
void controllerView::displayHelp( void )
{
QWhatsThis::showText( mapToGlobal( rect().center() ),
whatsThis() );
}
#include "moc_controller_view.cxx"
#endif