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

Method onRemoveEntry

Components/DeviceTweaks.cpp:162–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162void
163DeviceTweaks::onRemoveEntry(void)
164{
165 QList<QTableWidgetSelectionRange> ranges =
166 this->ui->tableWidget->selectedRanges();
167
168 if (!ranges.isEmpty()) {
169 int begin = ranges.at(0).topRow();
170 int count = ranges.at(0).rowCount();
171
172 do
173 this->ui->tableWidget->removeRow(begin);
174 while (--count);
175
176 this->setChanged(true);
177 }
178}
179
180void
181DeviceTweaks::onReset(void)

Callers

nothing calls this directly

Calls 2

setChangedMethod · 0.95
rowCountMethod · 0.45

Tested by

no test coverage detected