For search inside the conversation view we need to:
- Create a list of matches from all mails in the conversation
- Highlight those matches
- Make it possible to jump through the matches
- (perhaps filter mails that don't match at all)
The TextEdit that we use for simple mails does not seem to have any search API at all.
The webengine view has a findText call that highlights all matches, but no other control is provided.
Perhaps the way to go would be via javascript:
https://doc.qt.io/qt-5.10/qtwebengine-webenginewidgets-contentmanipulation-example.html
Highlighting stuff could be done via:
QString code = QStringLiteral("qt.jQuery('a').each( function () { qt.jQuery(this).css('background-color', 'yellow') } )"); view->page()->runJavaScript(code);
No idea about navigating them.
Overall it seems like a fairly involved exercise to the this going...