do not create queued signal-slot-connections

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1345 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-07-18 23:39:39 +00:00
parent fb7569de9c
commit 3b7bfede22
6 changed files with 10 additions and 16 deletions

View File

@@ -37,13 +37,11 @@ bbTrackContainer::bbTrackContainer( void ) :
m_bbComboBoxModel( this )
{
connect( &m_bbComboBoxModel, SIGNAL( dataChanged() ),
this, SLOT( currentBBChanged() ),
Qt::QueuedConnection );
this, SLOT( currentBBChanged() ) );
// we *always* want to receive updates even in case BB actually did
// not change upon setCurrentBB()-call
connect( &m_bbComboBoxModel, SIGNAL( dataUnchanged() ),
this, SLOT( currentBBChanged() ),
Qt::QueuedConnection );
this, SLOT( currentBBChanged() ) );
}

View File

@@ -104,12 +104,10 @@ void modelView::doConnections( void )
if( m_model != NULL )
{
QObject::connect( m_model, SIGNAL( dataChanged() ),
widget(), SLOT( update() ),
Qt::QueuedConnection );
widget(), SLOT( update() ) );
QObject::connect( m_model, SIGNAL( propertiesChanged() ),
widget(), SLOT( update() ),
Qt::QueuedConnection );
widget(), SLOT( update() ) );
}
}

View File

@@ -279,7 +279,7 @@ automationEditor::automationEditor( void ) :
m_zoomingXComboBox->setModel( &m_zoomingXModel );
connect( &m_zoomingXModel, SIGNAL( dataChanged() ),
this, SLOT( zoomingXChanged() ), Qt::QueuedConnection );
this, SLOT( zoomingXChanged() ) );
QLabel * zoom_y_lbl = new QLabel( m_toolBar );
@@ -298,7 +298,7 @@ automationEditor::automationEditor( void ) :
m_zoomingYComboBox->setModel( &m_zoomingYModel );
connect( &m_zoomingYModel, SIGNAL( dataChanged() ),
this, SLOT( zoomingYChanged() ), Qt::QueuedConnection );
this, SLOT( zoomingYChanged() ) );
// setup quantize-stuff

View File

@@ -122,7 +122,7 @@ bbEditor::bbEditor( bbTrackContainer * _tc ) :
setModel( _tc );
connect( &_tc->m_bbComboBoxModel, SIGNAL( dataChanged() ),
this, SLOT( updatePosition() ), Qt::QueuedConnection );
this, SLOT( updatePosition() ) );
}

View File

@@ -633,11 +633,10 @@ void knob::doConnections( void )
if( model() != NULL )
{
QObject::connect( model(), SIGNAL( dataChanged() ),
this, SLOT( friendlyUpdate() ),
Qt::QueuedConnection );
this, SLOT( friendlyUpdate() ) );
QObject::connect( model(), SIGNAL( propertiesChanged() ),
this, SLOT( update() ), Qt::QueuedConnection );
this, SLOT( update() ) );
}
}

View File

@@ -1195,8 +1195,7 @@ void instrumentTrackWindow::modelChanged( void )
connect( m_track, SIGNAL( nameChanged() ),
this, SLOT( updateName() ) );
connect( m_track, SIGNAL( instrumentChanged() ),
this, SLOT( updateInstrumentView() ),
Qt::QueuedConnection );
this, SLOT( updateInstrumentView() ) );
m_volumeKnob->setModel( &m_track->m_volumeModel );
m_panningKnob->setModel( &m_track->m_panningModel );