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

Method findNext

example/searchdialog.cpp:19–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17}
18
19qint64 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
35void SearchDialog::on_pbFind_clicked()
36{

Callers

nothing calls this directly

Calls 3

cursorPositionMethod · 0.80
lastIndexOfMethod · 0.45
indexOfMethod · 0.45

Tested by

no test coverage detected