| 126 | } |
| 127 | |
| 128 | void PointerScanWindow::slotSearch() |
| 129 | { |
| 130 | bool ok; |
| 131 | uintptr_t addr = addressInput->text().toULong(&ok, 16); |
| 132 | |
| 133 | if (!ok) |
| 134 | return; |
| 135 | |
| 136 | int max_level = maxLevelInput->value(); |
| 137 | int max_offset = maxOffsetInput->value(); |
| 138 | |
| 139 | scanCount->hide(); |
| 140 | searchProgress->show(); |
| 141 | |
| 142 | pointerScanModel->findPointerChain(addr, max_level, max_offset); |
| 143 | |
| 144 | /* Update address count */ |
| 145 | searchProgress->hide(); |
| 146 | scanCount->show(); |
| 147 | scanCount->setText(QString("%1 results").arg(pointerScanModel->pointer_chains.size())); |
| 148 | |
| 149 | /* Sort results */ |
| 150 | for (int c=max_level; c>=0; c--) { |
| 151 | pointerScanView->sortByColumn(c, Qt::AscendingOrder); |
| 152 | } |
| 153 | } |
| 154 | |
| 155 | void PointerScanWindow::slotAdd() |
| 156 | { |
nothing calls this directly
no test coverage detected