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:
@@ -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:
|
||||
|
||||
@@ -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 );
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user