| 17 | } |
| 18 | |
| 19 | qint64 SearchDialog::findNext() |
| 20 | { |
| 21 | qint64 from = _hexEdit->cursorPosition() / 2; |
| 22 | _findBa = getContent(ui->cbFindFormat->currentIndex(), ui->cbFind->currentText()); |
| 23 | qint64 idx = -1; |
| 24 | |
| 25 | if (_findBa.length() > 0) |
| 26 | { |
| 27 | if (ui->cbBackwards->isChecked()) |
| 28 | idx = _hexEdit->lastIndexOf(_findBa, from); |
| 29 | else |
| 30 | idx = _hexEdit->indexOf(_findBa, from); |
| 31 | } |
| 32 | return idx; |
| 33 | } |
| 34 | |
| 35 | void SearchDialog::on_pbFind_clicked() |
| 36 | { |
nothing calls this directly
no test coverage detected