pdfworker: don't use deprecated search overload

This commit is contained in:
Albert S. 2019-08-26 09:41:03 +02:00
父節點 4aed15f7a4
當前提交 60e9b029d3

查看文件

@ -73,7 +73,7 @@ struct Renderer
QImage img = pdfPage->renderToImage(scaleX, scaleY);
for(QString & word : wordsToHighlight)
{
QList<QRectF> rects = pdfPage->search(word, Poppler::Page::CaseInsensitive);
QList<QRectF> rects = pdfPage->search(word, Poppler::Page::SearchFlag::IgnoreCase);
for(QRectF &rect : rects)
{
QPainter painter(&img);