| 160 | } |
| 161 | |
| 162 | void |
| 163 | DeviceTweaks::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 | |
| 180 | void |
| 181 | DeviceTweaks::onReset(void) |
nothing calls this directly
no test coverage detected