Doc: Make snippets Qt Gui compilable - textdocument-images

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

View File

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

View File

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

View File

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