mirror of
https://github.com/LMMS/lmms.git
synced 2026-05-19 04:06:17 -04: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(
|
if( s_pat_rec == NULL ) { s_pat_rec = new QPixmap( embed::getIconPixmap(
|
||||||
"pat_rec" ) ); }
|
"pat_rec" ) ); }
|
||||||
|
|
||||||
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user