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

Method addToolWidget

Components/MainSpectrum.cpp:197–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195}
196
197void
198MainSpectrum::addToolWidget(QWidget *widget, QString const &title)
199{
200 int widthHint = widget->sizeHint().width();
201 bool collapsed = widget->property("collapsed").value<bool>();
202
203 this->ui->multiToolBox->addItem(
204 new MultiToolBoxItem(
205 title,
206 widget,
207 !collapsed));
208
209 if (this->maxToolWidth < widthHint)
210 this->maxToolWidth = widthHint;
211}
212
213void
214MainSpectrum::feed(float *data, int size, struct timeval const &tv, bool looped)

Callers 1

initSidePanelMethod · 0.80

Calls 2

widthMethod · 0.80
sizeHintMethod · 0.80

Tested by

no test coverage detected