clean up warnings in mixboard
parent
cf75f22403
commit
401ee05aa4
3
notes
3
notes
|
@ -32,7 +32,7 @@ parameters {
|
|||
|
||||
TODO {
|
||||
immediate frontburner {
|
||||
fix warnings in mixboard
|
||||
- fix warnings in mixboard
|
||||
decide whether to standardize knob setup orderings
|
||||
bump gain knob max to +12dB
|
||||
preset function for gain and balance? autoGain (templated because bind)
|
||||
|
@ -48,6 +48,7 @@ TODO {
|
|||
listens for one specific param
|
||||
supports tweening
|
||||
value bounds, scaling exponent
|
||||
passthrough command port with option to consume marked param
|
||||
|
||||
how to UI?
|
||||
I guess some sort of text box/spinner to enter bounds
|
||||
|
|
|
@ -137,7 +137,8 @@ void MixBoard::onGadgetCreated() {
|
|||
if (!obj) return;
|
||||
{
|
||||
auto k = new Gadget();
|
||||
for (auto c : obj->contents->childItems()) c->setParentItem(k);
|
||||
auto ch = obj->contents->childItems(); // avoid detach warnings
|
||||
for (auto c : ch) c->setParentItem(k);
|
||||
k->deleteLater();
|
||||
}
|
||||
qDeleteAll(obj->contents->childItems()); // clear out anything already there
|
||||
|
@ -164,8 +165,8 @@ void MixBoard::onGadgetCreated() {
|
|||
auto end = (new LayoutGadget(ln, true))->setMetrics(-1, spc);
|
||||
auto bIns = (new ButtonGadget(end))->setSize(16, 16)->setText("+");
|
||||
auto bDel = (new ButtonGadget(end))->setSize(16, 16)->setText("-");
|
||||
QObject::connect(bIns, &ButtonGadget::clicked, [this, i] { insertSection(static_cast<uint8_t>(i)); });
|
||||
QObject::connect(bDel, &ButtonGadget::clicked, [this, i] { removeSection(static_cast<uint8_t>(i)); });
|
||||
QObject::connect(bIns, &ButtonGadget::clicked, obj, [this, i] { insertSection(static_cast<uint8_t>(i)); });
|
||||
QObject::connect(bDel, &ButtonGadget::clicked, obj, [this, i] { removeSection(static_cast<uint8_t>(i)); });
|
||||
|
||||
if (count <= 1) delete bDel; // no dropping to zero
|
||||
}
|
||||
|
@ -175,5 +176,5 @@ void MixBoard::onGadgetCreated() {
|
|||
for (auto i = 0; i < static_cast<int>(count); i++) c[i]->setY(lc[i]->y() + lc[i]->boundingRect().center().y());
|
||||
|
||||
auto btn = (new ButtonGadget(l))->setSize(16, 16)->setText("+");
|
||||
QObject::connect(btn, &ButtonGadget::clicked, [this, count] { insertSection(static_cast<uint8_t>(count)); });
|
||||
QObject::connect(btn, &ButtonGadget::clicked, obj, [this, count] { insertSection(static_cast<uint8_t>(count)); });
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue