value negation
parent
00cfb9df3a
commit
29b0367dfb
3
notes
3
notes
|
@ -44,7 +44,8 @@ TODO {
|
|||
- make space preview on port column
|
||||
- fix strut not working except to overwrite another param
|
||||
|
||||
add negate function to param columns
|
||||
- add negate function to param columns
|
||||
multi select negate
|
||||
|
||||
revert-to-saved menu action
|
||||
|
||||
|
|
|
@ -323,6 +323,10 @@ bool PatternEditorItemDelegate::editorEvent(QEvent *event, QAbstractItemModel *m
|
|||
view->setCurrentIndex(index.siblingAtColumn(index.column()+1));
|
||||
return dc->commit();
|
||||
} else {
|
||||
if (k == Qt::Key_Minus) { // negate current value
|
||||
row.param(par)[1] *= -1;
|
||||
return dc->commit();
|
||||
}
|
||||
if (k == Qt::Key_Comma) { // convenience; allow inserting an extend from number column
|
||||
if (row.numParams() >= PatternEditorModel::paramSoftCap) return dc->cancel();
|
||||
row.insertParam(par+1, ',');
|
||||
|
|
Loading…
Reference in New Issue