diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2023-08-02 17:43:39 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2023-08-06 20:25:14 +0000 |
commit | c9367cb556449999fbfeb7c47e34369177438e6e (patch) | |
tree | f6a54e8ea90a64015716e8f3de96b9c482ae2e7c /examples | |
parent | aacf93e14a6f102b79f4506b334ae8a4b014f0c2 (diff) |
Rename QPdfView::currentSearchResult() -> currentSearchResultIndex()
I don't think it was very confusing, but just in case we could want a
currentSearchResult() returning the actual result object at some point.
It was a suggestion from header review.
Amends 288e9be6ba2be40761333036f3397298df5e1018
Change-Id: Ie3eb500e3a79b80b8abafbe19c48b57c7e9d71be
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
(cherry picked from commit 84a5d90fc43ead2ce2aa3bdaac2ca88241700d5d)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/pdfwidgets/pdfviewer/mainwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/pdfwidgets/pdfviewer/mainwindow.cpp b/examples/pdfwidgets/pdfviewer/mainwindow.cpp index 277f9cfb3..5c4554ca2 100644 --- a/examples/pdfwidgets/pdfviewer/mainwindow.cpp +++ b/examples/pdfwidgets/pdfviewer/mainwindow.cpp @@ -128,7 +128,7 @@ void MainWindow::searchResultSelected(const QModelIndex ¤t, const QModelIn const int page = current.data(int(QPdfSearchModel::Role::Page)).toInt(); const QPointF location = current.data(int(QPdfSearchModel::Role::Location)).toPointF(); ui->pdfView->pageNavigator()->jump(page, location); - ui->pdfView->setCurrentSearchResult(current.row()); + ui->pdfView->setCurrentSearchResultIndex(current.row()); } void MainWindow::on_actionOpen_triggered() |