mirror of
https://github.com/LMMS/lmms.git
synced 2026-03-06 15:18:09 -05:00
Fix BBtrack updating; Fix the Pattern tooltip
This commit is contained in:
@@ -60,6 +60,8 @@ AutomationPatternView::AutomationPatternView( AutomationPattern * _pattern,
|
||||
|
||||
if( s_pat_rec == NULL ) { s_pat_rec = new QPixmap( embed::getIconPixmap(
|
||||
"pat_rec" ) ); }
|
||||
|
||||
update();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -701,9 +701,9 @@ PatternView::PatternView( Pattern* pattern, TrackView* parent ) :
|
||||
s_stepBtnOffLight = new QPixmap( embed::getIconPixmap(
|
||||
"step_btn_off_light" ) );
|
||||
}
|
||||
|
||||
update();
|
||||
|
||||
ToolTip::add( this,
|
||||
tr( "use mouse wheel to set velocity of a step" ) );
|
||||
setStyle( QApplication::style() );
|
||||
}
|
||||
|
||||
@@ -722,7 +722,22 @@ PatternView::~PatternView()
|
||||
|
||||
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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user