diff options
Diffstat (limited to 'src/pdf/quick/qquickpdfsearchmodel.cpp')
-rw-r--r-- | src/pdf/quick/qquickpdfsearchmodel.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/pdf/quick/qquickpdfsearchmodel.cpp b/src/pdf/quick/qquickpdfsearchmodel.cpp index 1f62fbad0..a39178ba3 100644 --- a/src/pdf/quick/qquickpdfsearchmodel.cpp +++ b/src/pdf/quick/qquickpdfsearchmodel.cpp @@ -104,9 +104,9 @@ void QQuickPdfSearchModel::setDocument(QQuickPdfDocument *document) \sa PathMultiline */ -QVector<QPolygonF> QQuickPdfSearchModel::currentResultBoundingPolygons() const +QList<QPolygonF> QQuickPdfSearchModel::currentResultBoundingPolygons() const { - QVector<QPolygonF> ret; + QList<QPolygonF> ret; const auto &results = const_cast<QQuickPdfSearchModel *>(this)->resultsOnPage(m_currentPage); if (m_currentResult < 0 || m_currentResult >= results.count()) return ret; @@ -172,7 +172,7 @@ void QQuickPdfSearchModel::onResultsChanged() \sa PathMultiline */ -QVector<QPolygonF> QQuickPdfSearchModel::currentPageBoundingPolygons() const +QList<QPolygonF> QQuickPdfSearchModel::currentPageBoundingPolygons() const { return const_cast<QQuickPdfSearchModel *>(this)->boundingPolygonsOnPage(m_currentPage); } @@ -203,14 +203,14 @@ QVector<QPolygonF> QQuickPdfSearchModel::currentPageBoundingPolygons() const \sa PathMultiline */ -QVector<QPolygonF> QQuickPdfSearchModel::boundingPolygonsOnPage(int page) +QList<QPolygonF> QQuickPdfSearchModel::boundingPolygonsOnPage(int page) { if (!document() || searchString().isEmpty() || page < 0 || page > document()->pageCount()) return {}; updatePage(page); - QVector<QPolygonF> ret; + QList<QPolygonF> ret; auto m = QPdfSearchModel::resultsOnPage(page); for (auto result : m) { for (auto rect : result.rectangles()) |