Doc: Make snippets Qt Gui compilable - textdocument-imageformat

Task-number: QTBUG-81486
Change-Id: I9bf94bb8c82d7751a8615c6e1e3278400e77ce3a
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
bb10
Nico Vertriest 2020-08-04 09:36:28 +02:00 committed by Paul Wicking
parent 2be708b801
commit 935ce5e41d
3 changed files with 14 additions and 5 deletions

View File

@ -15,5 +15,6 @@ contains(QT_BUILD_PARTS, tests) {
textdocument-end \
textdocument-find \
textdocument-frames \
textdocument-imagedrop
textdocument-imagedrop \
textdocument-imageformat
}

View File

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

View File

@ -1,2 +1,9 @@
SOURCES = main.cpp
RESOURCES += images.qrc
TEMPLATE = lib
TARGET = textdocument-imageformat
QT += widgets core gui
SOURCES = \
main.cpp
RESOURCES = \
images.qrc