MCPcopy Create free account
hub / github.com/BatchDrake/SigDigger / setSidePanelWidth

Method setSidePanelWidth

Components/MainSpectrum.cpp:714–726  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

712}
713
714void
715MainSpectrum::setSidePanelWidth(int width)
716{
717 QList<int> sizes;
718 int fullWidth = this->ui->splitter->width();
719
720 if (fullWidth > 0) {
721 sizes.append(fullWidth - width);
722 sizes.append(width);
723
724 this->ui->splitter->setSizes(sizes);
725 }
726}
727
728int
729MainSpectrum::sidePanelWidth(void) const

Callers 2

adjustSizesMethod · 0.95
setSidePanelRatioMethod · 0.95

Calls 2

widthMethod · 0.80
appendMethod · 0.80

Tested by

no test coverage detected