Doc: Make snippets Qt Gui compilable - textdocument-charformats

Task-number: QTBUG-81486
Change-Id: I460917c979eb9bd90b9ab7694c0928ab252adae9
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
Nico Vertriest 2020-08-03 15:21:37 +02:00 committed by Paul Wicking
parent 886cc0e442
commit 860c68522b
3 changed files with 9 additions and 3 deletions

View File

@ -9,5 +9,6 @@ contains(QT_BUILD_PARTS, tests) {
draganddrop \
qfontdatabase \
textdocument-blocks \
textdocument-charformats \
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-charformats
QT += core gui widgets
SOURCES = \
main.cpp