Refresh painting after chaning PRE Quantization

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1510 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Paul Giblock
2008-08-27 14:26:04 +00:00
parent 885bdc58b5
commit 9bcf42cca5
2 changed files with 11 additions and 0 deletions

View File

@@ -127,6 +127,7 @@ protected slots:
void updatePosition( const midiTime & _t );
void zoomingChanged( void );
void quantizeChanged( void );
private:

View File

@@ -388,6 +388,8 @@ pianoRoll::pianoRoll( void ) :
m_quantizeComboBox = new comboBox( m_toolBar );
m_quantizeComboBox->setModel( &m_quantizeModel );
m_quantizeComboBox->setFixedSize( 60, 22 );
connect( &m_quantizeModel, SIGNAL( dataChanged() ),
this, SLOT( quantizeChanged() ) );
// setup note-len-stuff
@@ -2669,6 +2671,14 @@ void pianoRoll::zoomingChanged( void )
void pianoRoll::quantizeChanged( void )
{
static int oldQuantize = -1;
// Could be smarter
update();
}
int pianoRoll::quantization( void ) const
{
return( DefaultTicksPerTact / m_quantizeModel.currentText().right(