Fix horizontal track resizing.
Fixes a regression from PR #3878 that broke horizontal track resizing.
This commit is contained in:
@@ -2745,11 +2745,6 @@ void TrackView::dropEvent( QDropEvent * de )
|
||||
*/
|
||||
void TrackView::mousePressEvent( QMouseEvent * me )
|
||||
{
|
||||
if( me->x()>10 ) // 10 = The width of the grip + 2 pixels to the left and right.
|
||||
{
|
||||
QWidget::mousePressEvent( me );
|
||||
return;
|
||||
}
|
||||
|
||||
// If previously dragged too small, restore on shift-leftclick
|
||||
if( height() < DEFAULT_TRACK_HEIGHT &&
|
||||
@@ -2781,6 +2776,12 @@ void TrackView::mousePressEvent( QMouseEvent * me )
|
||||
}
|
||||
else
|
||||
{
|
||||
if( me->x()>10 ) // 10 = The width of the grip + 2 pixels to the left and right.
|
||||
{
|
||||
QWidget::mousePressEvent( me );
|
||||
return;
|
||||
}
|
||||
|
||||
m_action = MoveTrack;
|
||||
|
||||
QCursor c( Qt::SizeVerCursor );
|
||||
|
||||
Reference in New Issue
Block a user