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:
@@ -127,6 +127,7 @@ protected slots:
|
||||
void updatePosition( const midiTime & _t );
|
||||
|
||||
void zoomingChanged( void );
|
||||
void quantizeChanged( void );
|
||||
|
||||
|
||||
private:
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user