Fix horizontal track resizing.

Fixes a regression from PR #3878 that broke horizontal track resizing.
This commit is contained in:
Hussam Eddin Alhomsi
2017-11-17 10:31:59 +03:00
parent c102fa8ab4
commit e8debf9015

View File

@@ -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 );