Doc: Make snippets Qt Gui compilable - textdocument-find

Task-number: QTBUG-81486
Change-Id: I97b2b9a9b672776971e4792b713a23272eb653ce
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
This commit is contained in:
Nico Vertriest 2020-08-04 09:23:57 +02:00 committed by Paul Wicking
parent d76d37fd1a
commit b28870b2cc
3 changed files with 10 additions and 4 deletions

View File

@ -12,5 +12,6 @@ contains(QT_BUILD_PARTS, tests) {
textdocument-charformats \
textdocument-css \
textdocument-cursors \
textdocument-end
textdocument-end \
textdocument-find
}

View File

@ -47,8 +47,8 @@
** $QT_END_LICENSE$
**
****************************************************************************/
#include <QtGui>
#include <QApplication>
#include <QTextEdit>
QString tr(const char *text)
{

View File

@ -1 +1,6 @@
SOURCES = main.cpp
TEMPLATE = lib
TARGET = textdocument-find
QT += core gui widgets
SOURCES = \
main.cpp