diff options
Diffstat (limited to 'examples/uitools/textfinder/textfinder.cpp')
-rw-r--r-- | examples/uitools/textfinder/textfinder.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/uitools/textfinder/textfinder.cpp b/examples/uitools/textfinder/textfinder.cpp index ee6dce89c..d32280215 100644 --- a/examples/uitools/textfinder/textfinder.cpp +++ b/examples/uitools/textfinder/textfinder.cpp @@ -120,9 +120,9 @@ void TextFinder::on_findButton_clicked() "The search field is empty. Please enter a word and click Find."); } else { - QTextCursor highlightCursor(document); + QTextCursor highlightCursor(document); QTextCursor cursor(document); - + cursor.beginEditBlock(); //! [6] @@ -149,7 +149,7 @@ void TextFinder::on_findButton_clicked() if (found == false) { QMessageBox::information(this, tr("Word Not Found"), "Sorry, the word cannot be found."); - } + } } } //! [8] //! [9] |