pdfworker: don't use deprecated search overload
This commit is contained in:
父節點
a979eb1f51
當前提交
de04264eb5
@ -70,7 +70,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);
|
||||
|
載入中…
新增問題並參考
Block a user