Fix issue with Mixer key events and Track Label Button focus (#7870)
A follow up to #7762 to fix various issues involving key events and focus grabbing problems.
This commit is contained in:
@@ -235,6 +235,10 @@ void MixerChannelView::keyPressEvent(QKeyEvent* ke)
|
||||
{
|
||||
m_fader->adjustByDialog();
|
||||
}
|
||||
else
|
||||
{
|
||||
ke->ignore();
|
||||
}
|
||||
}
|
||||
|
||||
void MixerChannelView::setChannelIndex(int index)
|
||||
|
||||
@@ -267,7 +267,7 @@ void SampleTrackWindow::closeEvent(QCloseEvent* ce)
|
||||
hide();
|
||||
}
|
||||
|
||||
m_stv->m_tlb->setFocus();
|
||||
m_stv->setFocus();
|
||||
m_stv->m_tlb->setChecked(false);
|
||||
}
|
||||
|
||||
|
||||
@@ -539,8 +539,8 @@ void InstrumentTrackWindow::closeEvent( QCloseEvent* event )
|
||||
hide();
|
||||
}
|
||||
|
||||
m_itv->m_tlb->setFocus();
|
||||
m_itv->m_tlb->setChecked( false );
|
||||
m_itv->setFocus();
|
||||
m_itv->m_tlb->setChecked(false);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -47,6 +47,7 @@ TrackLabelButton::TrackLabelButton( TrackView * _tv, QWidget * _parent ) :
|
||||
m_iconName()
|
||||
{
|
||||
setAcceptDrops( true );
|
||||
setFocusPolicy(Qt::NoFocus);
|
||||
setCursor( QCursor( embed::getIconPixmap( "hand" ), 3, 3 ) );
|
||||
setToolButtonStyle( Qt::ToolButtonTextBesideIcon );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user