Replace Adjuster::delay by Adjuster::setDelay()

This commit is contained in:
Flössie
2020-08-02 11:20:10 +02:00
parent d4807891f0
commit b7738afe22
20 changed files with 117 additions and 251 deletions

View File

@@ -214,13 +214,9 @@ ICMPanel::ICMPanel() : FoldableToolPanel(this, "icm", M("TP_ICM_LABEL")), iuncha
wGamma->setAdjusterListener(this);
wSlope->setAdjusterListener(this);
if (wGamma->delay < options.adjusterMaxDelay) {
wGamma->delay = options.adjusterMaxDelay;
}
wGamma->setDelay(std::max(options.adjusterMinDelay, options.adjusterMaxDelay));
if (wSlope->delay < options.adjusterMaxDelay) {
wSlope->delay = options.adjusterMaxDelay;
}
wSlope->setDelay(std::max(options.adjusterMinDelay, options.adjusterMaxDelay));
wFrame->add(*wProfVBox);