Graph cursor and new piano roll paste.

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1529 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Paul Giblock
2008-09-02 04:41:13 +00:00
parent 7980ac086f
commit 72f4062d3d
3 changed files with 12 additions and 2 deletions

View File

@@ -1,3 +1,12 @@
2008-09-02 Paul Giblock <drfaygo/at/gmail/dot/com>
* src/gui/widgets/graph.cpp:
Display crosshair cursor as a hint to the user
* src/gui/piano_roll.cpp:
Change Piano-Roll paste behavior. Instead of pasting at 0, paste at the
quantized location of the time-line's position-indicator.
2008-09-01 Paul Giblock <drfaygo/at/gmail/dot/com>
* include/track_container.h:

View File

@@ -2584,7 +2584,7 @@ void pianoRoll::pasteNotes( void )
{
note cur_note;
cur_note.restoreState( list.item( i ).toElement() );
cur_note.setPos( cur_note.pos() + m_currentPosition );
cur_note.setPos( cur_note.pos() + m_timeLine->pos() );
m_pattern->addNote( cur_note );
}

View File

@@ -49,6 +49,7 @@ graph::graph( QWidget * _parent, graphStyle _style ) :
resize( 132, 104 );
setAcceptDrops( TRUE );
setCursor( Qt::CrossCursor );
graphModel * gModel = castModel<graphModel>();
@@ -205,7 +206,7 @@ void graph::mouseReleaseEvent( QMouseEvent * _me )
{
// toggle mouse state
m_mouseDown = false;
setCursor( Qt::ArrowCursor );
setCursor( Qt::CrossCursor );
update();
}
}