Mercurial > hg > svgui
changeset 876:b62c2785ed83 tonioni
Make the dragged pitch take effect when releasing drag on a note
author | Chris Cannam |
---|---|
date | Tue, 11 Nov 2014 17:05:44 +0000 |
parents | 0e674f1bbf08 |
children | 4968bbaf1ed8 |
files | layer/FlexiNoteLayer.cpp layer/FlexiNoteLayer.h |
diffstat | 2 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/layer/FlexiNoteLayer.cpp Tue Nov 11 14:11:07 2014 +0000 +++ b/layer/FlexiNoteLayer.cpp Tue Nov 11 17:05:44 2014 +0000 @@ -1200,6 +1200,11 @@ QString newName = m_editingCommand->getName(); + if (m_editMode == DragNote) { + //!!! command nesting is wrong? + emit materialiseReAnalysis(); + } + m_editingCommand->deletePoint(m_editingPoint); updateNoteValueFromPitchCurve(v, m_editingPoint); m_editingCommand->addPoint(m_editingPoint);
--- a/layer/FlexiNoteLayer.h Tue Nov 11 14:11:07 2014 +0000 +++ b/layer/FlexiNoteLayer.h Tue Nov 11 17:05:44 2014 +0000 @@ -165,6 +165,7 @@ signals: void reAnalyseRegion(int, int, float, float); + void materialiseReAnalysis(); protected: void getScaleExtents(View *, float &min, float &max, bool &log) const;