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

Method commitConfig

Components/DeviceTweaks.cpp:110–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110void
111DeviceTweaks::commitConfig(void)
112{
113 if (this->profile != nullptr) {
114 auto model = this->ui->tableWidget->model();
115 int rows = model->rowCount();
116
117 this->profile->clearParams();
118
119 for (int i = 0; i < rows; ++i) {
120 auto key = this->ui->tableWidget->item(i, 0)->text().toStdString();
121 auto val = this->ui->tableWidget->item(i, 1)->text().toStdString();
122
123 this->profile->setParam(key, val);
124 }
125 }
126}
127
128void
129DeviceTweaks::setProfile(Suscan::Source::Config *profile)

Callers 1

Calls 3

clearParamsMethod · 0.80
setParamMethod · 0.80
rowCountMethod · 0.45

Tested by

no test coverage detected