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

Method indexOf

src/qhexedit.cpp:379–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

377}
378
379qint64 QHexEdit::indexOf(const QByteArray &ba, qint64 from)
380{
381 qint64 pos = _chunks->indexOf(ba, from);
382 if (pos > -1)
383 {
384 qint64 curPos = pos*2;
385 setCursorPosition(curPos + ba.length()*2);
386 resetSelection(curPos);
387 setSelection(curPos + ba.length()*2);
388 ensureVisible();
389 }
390 return pos;
391}
392
393bool QHexEdit::isModified()
394{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected