Skip to content

Commit

Permalink
Fix BBtrack updating; Fix the Pattern tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
Umcaruje committed Mar 9, 2016
1 parent a895e2b commit fcec8dd
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/gui/AutomationPatternView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ AutomationPatternView::AutomationPatternView( AutomationPattern * _pattern,

if( s_pat_rec == NULL ) { s_pat_rec = new QPixmap( embed::getIconPixmap(
"pat_rec" ) ); }

update();
}


Expand Down
21 changes: 18 additions & 3 deletions src/tracks/Pattern.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() );
}

Expand All @@ -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();
}

Expand Down

0 comments on commit fcec8dd

Please sign in to comment.