| 195 | } |
| 196 | |
| 197 | void |
| 198 | MainSpectrum::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 | |
| 213 | void |
| 214 | MainSpectrum::feed(float *data, int size, struct timeval const &tv, bool looped) |
no test coverage detected