Doc: Make snippets Qt Gui compilable - textblock-formats

Task-number: QTGUI-81486
Change-Id: I06dd6ce04b4d37c49df07d4b1b47c3ef029ee419
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
bb10
Nico Vertriest 2020-08-17 06:38:38 +02:00 committed by Paul Wicking
parent 03887ab8a3
commit b6043dc34e
3 changed files with 10 additions and 5 deletions

View File

@ -9,6 +9,7 @@ contains(QT_BUILD_PARTS, tests) {
draganddrop \
droparea \
qfontdatabase \
textblock-formats \
textdocument-blocks \
textdocument-charformats \
textdocument-css \

View File

@ -47,15 +47,15 @@
** $QT_END_LICENSE$
**
****************************************************************************/
#include <QtGui>
#include <QApplication>
#include <QTextEdit>
QString tr(const char *text)
{
return QApplication::translate(text, text);
}
int main(int argc, char *argv[])
int main_textblock_formats(int argc, char *argv[])
{
QApplication app(argc, argv);

View File

@ -1,2 +1,6 @@
QT += xml
SOURCES = main.cpp
TEMPLATE = lib
TARGET = gui_snippets_textblock_formats
QT += core gui widgets
SOURCES = \
main.cpp