don't allow dragging TCOs in BBEditor (#3832)
* don't allow dragging TCOs in BBEditor * change bbtrack detecting * code improvements
This commit is contained in:
committed by
Umcaruje
parent
fdec4da50c
commit
31d27d2099
@@ -688,7 +688,7 @@ void TrackContentObjectView::paintTextLabel(QString const & text, QPainter & pai
|
||||
void TrackContentObjectView::mousePressEvent( QMouseEvent * me )
|
||||
{
|
||||
setInitialMousePos( me->pos() );
|
||||
if( me->button() == Qt::LeftButton )
|
||||
if( !fixedTCOs() && me->button() == Qt::LeftButton )
|
||||
{
|
||||
if( me->modifiers() & Qt::ControlModifier )
|
||||
{
|
||||
@@ -776,7 +776,7 @@ void TrackContentObjectView::mousePressEvent( QMouseEvent * me )
|
||||
{
|
||||
m_tco->toggleMute();
|
||||
}
|
||||
else if( me->modifiers() & Qt::ShiftModifier && fixedTCOs() == false )
|
||||
else if( me->modifiers() & Qt::ShiftModifier && !fixedTCOs() )
|
||||
{
|
||||
remove();
|
||||
}
|
||||
@@ -787,7 +787,7 @@ void TrackContentObjectView::mousePressEvent( QMouseEvent * me )
|
||||
{
|
||||
m_tco->toggleMute();
|
||||
}
|
||||
else if( fixedTCOs() == false )
|
||||
else if( !fixedTCOs() )
|
||||
{
|
||||
remove();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user