Issue #116: Improve search bar (rembember searched text, allow scroll and zoom)

This commit is contained in:
Jakub Melka
2023-12-02 12:10:50 +01:00
parent 1c5c7da5ba
commit a892c192fc
3 changed files with 80 additions and 4 deletions

View File

@@ -177,6 +177,7 @@ private:
void onSearchText();
void onActionPrevious();
void onActionNext();
void onDialogRejected();
void performSearch();
void updateResultsUI();
@@ -194,6 +195,10 @@ private:
QPushButton* m_previousButton;
QPushButton* m_nextButton;
QString m_savedText;
bool m_savedIsCaseSensitive = false;
bool m_savedIsWholeWords = false;
pdf::PDFTextSelection getTextSelection() const { return m_textSelection.get(this, &PDFFindTextTool::getTextSelectionImpl); }
pdf::PDFTextSelection getTextSelectionImpl() const;