Proposed fix for #1532 Tracks in song editor cannot be moved in pattern select mode.

This commit is contained in:
Dave French
2015-01-28 15:35:01 +00:00
parent 9b26c5bb68
commit dd80301cee

View File

@@ -2612,7 +2612,11 @@ void TrackView::mousePressEvent( QMouseEvent * _me )
}
if( m_trackContainerView->allowRubberband() == true )
int widgetTotal = ConfigManager::inst()->value( "ui",
"compacttrackbuttons" ).toInt()==1 ?
DEFAULT_SETTINGS_WIDGET_WIDTH_COMPACT + TRACK_OP_WIDTH_COMPACT :
DEFAULT_SETTINGS_WIDGET_WIDTH + TRACK_OP_WIDTH;
if( m_trackContainerView->allowRubberband() == true && _me->x() > widgetTotal )
{
QWidget::mousePressEvent( _me );
}
@@ -2666,8 +2670,11 @@ void TrackView::mousePressEvent( QMouseEvent * _me )
*/
void TrackView::mouseMoveEvent( QMouseEvent * _me )
{
if( m_trackContainerView->allowRubberband() == true )
int widgetTotal = ConfigManager::inst()->value( "ui",
"compacttrackbuttons" ).toInt()==1 ?
DEFAULT_SETTINGS_WIDGET_WIDTH_COMPACT + TRACK_OP_WIDTH_COMPACT :
DEFAULT_SETTINGS_WIDGET_WIDTH + TRACK_OP_WIDTH;
if( m_trackContainerView->allowRubberband() == true && _me->x() > widgetTotal )
{
QWidget::mouseMoveEvent( _me );
}