Fix BBtrack updating; Fix the Pattern tooltip

This commit is contained in:
Umcaruje
2016-03-09 16:59:19 +01:00
parent a895e2b060
commit fcec8ddd02
2 changed files with 20 additions and 3 deletions

View File

@@ -60,6 +60,8 @@ AutomationPatternView::AutomationPatternView( AutomationPattern * _pattern,
if( s_pat_rec == NULL ) { s_pat_rec = new QPixmap( embed::getIconPixmap( if( s_pat_rec == NULL ) { s_pat_rec = new QPixmap( embed::getIconPixmap(
"pat_rec" ) ); } "pat_rec" ) ); }
update();
} }

View File

@@ -701,9 +701,9 @@ PatternView::PatternView( Pattern* pattern, TrackView* parent ) :
s_stepBtnOffLight = new QPixmap( embed::getIconPixmap( s_stepBtnOffLight = new QPixmap( embed::getIconPixmap(
"step_btn_off_light" ) ); "step_btn_off_light" ) );
} }
update();
ToolTip::add( this,
tr( "use mouse wheel to set velocity of a step" ) );
setStyle( QApplication::style() ); setStyle( QApplication::style() );
} }
@@ -722,7 +722,22 @@ PatternView::~PatternView()
void PatternView::update() void PatternView::update()
{ {
m_pat->changeLength( m_pat->length() ); if( fixedTCOs() )
{
m_pat->changeLength( m_pat->length() );
}
if ( m_pat->m_patternType == Pattern::BeatPattern )
{
ToolTip::add( this,
tr( "use mouse wheel to set velocity of a step" ) );
}
else
{
ToolTip::add( this,
tr( "double-click to open in Piano Roll" ) );
}
TrackContentObjectView::update(); TrackContentObjectView::update();
} }