integrated pitanga's patch to fix unquantized BB dragging in song editor. Changed ctrl modifier to alt to be consistent.

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1992 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Andrew Kelley
2009-02-02 03:06:50 +00:00
parent 65ca28ddfc
commit 59d2e07da0
2 changed files with 16 additions and 5 deletions

View File

@@ -1,3 +1,9 @@
2009-02-01 Andrew Kelley <superjoe30/at/gmail/dot/com>
* src/core/track.cpp:
integrated pitanga's patch to fix unquantized BB dragging in
song editor. Changed ctrl modifier to alt to be consistent.
2009-02-01 Andrew Kelley <superjoe30/at/gmail/dot/com>
* plugins/flp_import/flp_import.cpp:

View File

@@ -683,7 +683,7 @@ void trackContentObjectView::mouseMoveEvent( QMouseEvent * _me )
QVector<selectableObject *> so =
m_trackView->getTrackContainerView()->selectedObjects();
QVector<trackContentObject *> tcos;
midiTime smallest_pos;
midiTime smallest_pos, t;
// find out smallest position of all selected objects for not
// moving an object before zero
for( QVector<selectableObject *>::iterator it = so.begin();
@@ -705,10 +705,15 @@ void trackContentObjectView::mouseMoveEvent( QMouseEvent * _me )
for( QVector<trackContentObject *>::iterator it = tcos.begin();
it != tcos.end(); ++it )
{
( *it )->movePosition( ( *it )->startPosition() +
static_cast<int>( dx *
midiTime::ticksPerTact() / ppt ) -
smallest_pos );
t = ( *it )->startPosition() +
static_cast<int>( dx *midiTime::ticksPerTact() /
ppt )-smallest_pos;
if( ! ( _me->modifiers() & Qt::AltModifier )
&& _me->button() == Qt::NoButton )
{
t = t.toNearestTact();
}
( *it )->movePosition( t );
}
}
else if( m_action == Resize )