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

Method setSidePanelRatio

Components/MainSpectrum.cpp:734–742  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

732}
733
734void
735MainSpectrum::setSidePanelRatio(qreal ratio)
736{
737 int fullWidth = this->ui->splitter->width();
738
739 int width = static_cast<int>(ratio * fullWidth);
740
741 this->setSidePanelWidth(width);
742}
743
744void
745MainSpectrum::deserializeFATs(void)

Callers 1

applyConfigMethod · 0.80

Calls 2

setSidePanelWidthMethod · 0.95
widthMethod · 0.80

Tested by

no test coverage detected