Doc: Make snippets Qt Gui compilable - textdocument-cursors

Task-number: QTBUG-81486
Change-Id: If02da7248b6c0299909fad83681fd5f08f3e29d9
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
bb10
Nico Vertriest 2020-08-04 09:14:50 +02:00 committed by Paul Wicking
parent 0f1c8d437f
commit d76d37fd1a
3 changed files with 9 additions and 3 deletions

View File

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

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-cursors
QT += core gui widgets
SOURCES = \
main.cpp