From 112c0315ee7769b0db31c0eab11c433850f1b2eb Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 8 Dec 2008 21:52:45 +0000 Subject: [PATCH] Forgot to delete some code git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1893 0778d3d1-df1d-0410-868b-ea421aaaa00d --- src/gui/piano_roll.cpp | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/src/gui/piano_roll.cpp b/src/gui/piano_roll.cpp index fa90800ca..db7fa990e 100644 --- a/src/gui/piano_roll.cpp +++ b/src/gui/piano_roll.cpp @@ -1813,31 +1813,6 @@ void pianoRoll::mouseMoveEvent( QMouseEvent * _me ) // change size of selection - /*if( x < 0 && m_currentPosition > 0 ) - { - x = 0; - QCursor::setPos( mapToGlobal( QPoint( - WHITE_KEY_WIDTH, - _me->y() ) ) ); - if( m_currentPosition >= 4 ) - { - m_leftRightScroll->setValue( - m_currentPosition - 4 ); - } - else - { - m_leftRightScroll->setValue( 0 ); - } - } - else if( x > width() - WHITE_KEY_WIDTH ) - { - x = width() - WHITE_KEY_WIDTH; - QCursor::setPos( mapToGlobal( QPoint( width(), - _me->y() ) ) ); - m_leftRightScroll->setValue( m_currentPosition + - 4 ); - }*/ - // get tick in which the cursor is posated int pos_ticks = x * midiTime::ticksPerTact() / m_ppt + m_currentPosition;