diff options
author | Florian Jung <flo@windfisch.org> | 2011-06-04 16:25:03 +0000 |
---|---|---|
committer | Florian Jung <flo@windfisch.org> | 2011-06-04 16:25:03 +0000 |
commit | 6786200a6243758c0ab6ba5d76ac1f34912788fb (patch) | |
tree | 1f92946dadf4b5e9f4edec205436d1ec495908a2 /muse2/muse/arranger/pcanvas.cpp | |
parent | db164b62e3892bd17d1a2eabca76bde3b67072df (diff) |
changed behaviour of middle click in all canvases to "delete"
Diffstat (limited to 'muse2/muse/arranger/pcanvas.cpp')
-rw-r--r-- | muse2/muse/arranger/pcanvas.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/muse2/muse/arranger/pcanvas.cpp b/muse2/muse/arranger/pcanvas.cpp index d65b8957..7b63d9e9 100644 --- a/muse2/muse/arranger/pcanvas.cpp +++ b/muse2/muse/arranger/pcanvas.cpp @@ -214,9 +214,7 @@ void PartCanvas::returnPressed() newPart->setName(lineEditor->text()); // Indicate do undo, and do port controller values but not clone parts. - //audio->msgChangePart(oldPart, newPart); audio->msgChangePart(oldPart, newPart, true, true, false); - //printf("PartCanvas::returnPressed after msgChangePart oldPart refs:%d Arefs:%d newPart refs:%d Arefs:%d\n", oldPart->events()->refCount(), oldPart->events()->arefCount(), newPart->events()->refCount(), newPart->events()->arefCount()); editMode = false; } @@ -429,12 +427,10 @@ bool PartCanvas::moveItem(CItem* item, const QPoint& newpos, DragType t) if (dtrack->type() == Track::WAVE) { // Indicate no undo, and do not do port controller values and clone parts. - //audio->msgChangePart((WavePart*)spart, (WavePart*)dpart,false); audio->msgChangePart((WavePart*)spart, (WavePart*)dpart, false, false, false); } else { // Indicate no undo, and do port controller values but not clone parts. - //audio->msgChangePart(spart, dpart, false); audio->msgChangePart(spart, dpart, false, true, false); } spart->setSelected(false); @@ -794,10 +790,7 @@ void PartCanvas::itemPopup(CItem* item, int n, const QPoint& pt) } song->startUndo(); // Indicate no undo, and do port controller values but not clone parts. - //audio->msgChangePart(spart, dpart, false); audio->msgChangePart(spart, dpart, false, true, false); - //printf("PartCanvas::itemPopup: #2 spart %s %p next:%s %p prev:%s %p\n", spart->name().toLatin1().constData(), spart, spart->nextClone()->name().toLatin1().constData(), spart->nextClone(), spart->prevClone()->name().toLatin1().constData(), spart->prevClone()); - //printf("PartCanvas::itemPopup: #2 dpart %s %p next:%s %p prev:%s %p\n", dpart->name().toLatin1().constData(), dpart, dpart->nextClone()->name().toLatin1().constData(), dpart->nextClone(), dpart->prevClone()->name().toLatin1().constData(), dpart->prevClone()); song->endUndo(SC_PART_MODIFIED); break; // Has to be break here, right? |