| 396 | } |
| 397 | |
| 398 | qint64 QHexEdit::lastIndexOf(const QByteArray &ba, qint64 from) |
| 399 | { |
| 400 | qint64 pos = _chunks->lastIndexOf(ba, from); |
| 401 | if (pos > -1) |
| 402 | { |
| 403 | qint64 curPos = pos*2; |
| 404 | setCursorPosition(curPos - 1); |
| 405 | resetSelection(curPos); |
| 406 | setSelection(curPos + ba.length()*2); |
| 407 | ensureVisible(); |
| 408 | } |
| 409 | return pos; |
| 410 | } |
| 411 | |
| 412 | void QHexEdit::redo() |
| 413 | { |
nothing calls this directly
no outgoing calls
no test coverage detected