diff --git a/src/gui/doc/snippets/snippets.pro b/src/gui/doc/snippets/snippets.pro index 1cc21235d5..4a004d5781 100644 --- a/src/gui/doc/snippets/snippets.pro +++ b/src/gui/doc/snippets/snippets.pro @@ -12,5 +12,6 @@ contains(QT_BUILD_PARTS, tests) { textdocument-charformats \ textdocument-css \ textdocument-cursors \ - textdocument-end + textdocument-end \ + textdocument-find } diff --git a/src/gui/doc/snippets/textdocument-find/main.cpp b/src/gui/doc/snippets/textdocument-find/main.cpp index 2021760e48..286b34db3e 100644 --- a/src/gui/doc/snippets/textdocument-find/main.cpp +++ b/src/gui/doc/snippets/textdocument-find/main.cpp @@ -47,8 +47,8 @@ ** $QT_END_LICENSE$ ** ****************************************************************************/ - -#include +#include +#include QString tr(const char *text) { diff --git a/src/gui/doc/snippets/textdocument-find/textdocument-find.pro b/src/gui/doc/snippets/textdocument-find/textdocument-find.pro index 16181f21cf..5fc0c7be71 100644 --- a/src/gui/doc/snippets/textdocument-find/textdocument-find.pro +++ b/src/gui/doc/snippets/textdocument-find/textdocument-find.pro @@ -1 +1,6 @@ -SOURCES = main.cpp +TEMPLATE = lib +TARGET = textdocument-find +QT += core gui widgets + +SOURCES = \ + main.cpp