diff options
author | Werner Schweer <ws.seh.de> | 2006-11-10 18:49:09 +0000 |
---|---|---|
committer | Werner Schweer <ws.seh.de> | 2006-11-10 18:49:09 +0000 |
commit | b57d19c8e8bf54d528fbc178f871e0c9c7313d86 (patch) | |
tree | 5e88ebedaec218c68c5f9eaa512847248b1ad9f0 | |
parent | 37f0fc080447bfd81269ed791ba309eaefef8d82 (diff) |
midi controller fix
-rw-r--r-- | muse/muse/ctrl/ctrldialog.cpp | 40 |
1 files changed, 11 insertions, 29 deletions
diff --git a/muse/muse/ctrl/ctrldialog.cpp b/muse/muse/ctrl/ctrldialog.cpp index 206687eb..f1117469 100644 --- a/muse/muse/ctrl/ctrldialog.cpp +++ b/muse/muse/ctrl/ctrldialog.cpp @@ -112,40 +112,22 @@ CtrlDialog::CtrlDialog(Track* track, int currentId, QWidget* parent) } } } - // - // add rest parameter - // - ControllerNameList* cn = track->controllerNames(); - for (iControllerName i = cn->begin(); i != cn->end(); ++i) { - if (i->id & 0xfffff000) - continue; - ci = new QTreeWidgetItem(tw, i->id); - ci->setText(0, i->name); - Ctrl* ctrl = track->getController(i->id); - if (!ctrl->empty()) - ci->setText(1, "*"); - if (i->id == currentId) { - tw->setCurrentItem(ci); - tw->setItemSelected(ci, true); - } - } } - else { - ControllerNameList* cn = track->controllerNames(); - for (iControllerName i = cn->begin(); i != cn->end(); ++i) { - ci = new QTreeWidgetItem(tw, i->id); - ci->setText(0, i->name); - Ctrl* ctrl = track->getController(i->id); - if (!ctrl->empty()) - ci->setText(1, "*"); + ControllerNameList* cn = track->controllerNames(); + for (iControllerName i = cn->begin(); i != cn->end(); ++i) { + ci = new QTreeWidgetItem(tw, i->id); + ci->setText(0, i->name); + Ctrl* ctrl = track->getController(i->id); + if (!ctrl->empty()) + ci->setText(1, "*"); - if (i->id == currentId) { - tw->setCurrentItem(ci); - tw->setItemSelected(ci, true); - } + if (i->id == currentId) { + tw->setCurrentItem(ci); + tw->setItemSelected(ci, true); } } + ci = new QTreeWidgetItem(tw, CTRL_OTHER); ci->setText(0, tr("other")); connect(tw, |