MCPcopy Create free account
hub / github.com/Simsys/qhexedit2 / lastIndexOf

Method lastIndexOf

src/qhexedit.cpp:398–410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

396}
397
398qint64 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
412void QHexEdit::redo()
413{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected