summaryrefslogtreecommitdiffstats
path: root/examples/uitools/textfinder
diff options
context:
space:
mode:
Diffstat (limited to 'examples/uitools/textfinder')
-rw-r--r--examples/uitools/textfinder/forms/input.txt16
-rw-r--r--examples/uitools/textfinder/textfinder.cpp6
-rw-r--r--examples/uitools/textfinder/textfinder.h2
-rw-r--r--examples/uitools/textfinder/textfinder.pro6
4 files changed, 15 insertions, 15 deletions
diff --git a/examples/uitools/textfinder/forms/input.txt b/examples/uitools/textfinder/forms/input.txt
index 29dfe5d6c..96e8c3047 100644
--- a/examples/uitools/textfinder/forms/input.txt
+++ b/examples/uitools/textfinder/forms/input.txt
@@ -1,9 +1,9 @@
-These forms are processed at run-time to produce dynamically-generated user interfaces.
-In order to generate a form at run-time, a resource file containing a UI file is needed.
-Applications that use the form handling classes need to be configured to be built against
-the QtUiTools module. This is done by including the following declaration in a qmake project
-file to ensure that the application is compiled and linked appropriately. A form loader object,
-provided by the QUiLoader class, is used to construct the user interface. This user interface
-can be retrieved from any QIODevice; for example, a QFile object can be used to obtain a form
-stored in a project's resources. The QUiLoader::load() function takes the user interface
+These forms are processed at run-time to produce dynamically-generated user interfaces.
+In order to generate a form at run-time, a resource file containing a UI file is needed.
+Applications that use the form handling classes need to be configured to be built against
+the QtUiTools module. This is done by including the following declaration in a qmake project
+file to ensure that the application is compiled and linked appropriately. A form loader object,
+provided by the QUiLoader class, is used to construct the user interface. This user interface
+can be retrieved from any QIODevice; for example, a QFile object can be used to obtain a form
+stored in a project's resources. The QUiLoader::load() function takes the user interface
description contained in the file and constructs the form widget. \ No newline at end of file
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]
diff --git a/examples/uitools/textfinder/textfinder.h b/examples/uitools/textfinder/textfinder.h
index 374f24540..1a7fd0c68 100644
--- a/examples/uitools/textfinder/textfinder.h
+++ b/examples/uitools/textfinder/textfinder.h
@@ -59,7 +59,7 @@ public:
private slots:
void on_findButton_clicked();
-
+
private:
QWidget* loadUiFile();
void loadTextFile();
diff --git a/examples/uitools/textfinder/textfinder.pro b/examples/uitools/textfinder/textfinder.pro
index 0e6421f6c..667711dda 100644
--- a/examples/uitools/textfinder/textfinder.pro
+++ b/examples/uitools/textfinder/textfinder.pro
@@ -1,6 +1,6 @@
-HEADERS = textfinder.h
-RESOURCES = textfinder.qrc
-SOURCES = textfinder.cpp main.cpp
+HEADERS = textfinder.h
+RESOURCES = textfinder.qrc
+SOURCES = textfinder.cpp main.cpp
target.path = $$[QT_INSTALL_EXAMPLES]/uitools/textfinder
INSTALLS += target