comparison layer/FlexiNoteLayer.cpp @ 1522:d5ef91dc2ea7

Merge from branch time-frequency-boxes
author Chris Cannam
date Wed, 25 Sep 2019 13:48:04 +0100
parents 0fa49a6ce64f
children 37df1530519d
comparison
equal deleted inserted replaced
1510:872873aa6463 1522:d5ef91dc2ea7
1602 if (!model) return false; 1602 if (!model) return false;
1603 1603
1604 Event note(0); 1604 Event note(0);
1605 if (!getPointToDrag(v, e->x(), e->y(), note)) return false; 1605 if (!getPointToDrag(v, e->x(), e->y(), note)) return false;
1606 1606
1607 // Event note = *points.begin();
1608
1609 ItemEditDialog *dialog = new ItemEditDialog 1607 ItemEditDialog *dialog = new ItemEditDialog
1610 (model->getSampleRate(), 1608 (model->getSampleRate(),
1611 ItemEditDialog::ShowTime | 1609 ItemEditDialog::ShowTime |
1612 ItemEditDialog::ShowDuration | 1610 ItemEditDialog::ShowDuration |
1613 ItemEditDialog::ShowValue | 1611 ItemEditDialog::ShowValue |
1612 ItemEditDialog::ShowLevel |
1614 ItemEditDialog::ShowText, 1613 ItemEditDialog::ShowText,
1615 getScaleUnits()); 1614 getScaleUnits());
1616 1615
1617 dialog->setFrameTime(note.getFrame()); 1616 dialog->setFrameTime(note.getFrame());
1618 dialog->setValue(note.getValue()); 1617 dialog->setValue(note.getValue());