diff options
author | Nico Vertriest <[email protected]> | 2020-08-04 09:36:28 +0200 |
---|---|---|
committer | Paul Wicking <[email protected]> | 2020-09-01 06:13:04 +0200 |
commit | 935ce5e41ddce299a58259ae61df6d941c1a033f (patch) | |
tree | ba1a3d8d341947eded57d41e0ce8ef76987d85e2 /src/gui/doc/snippets/textdocument-imageformat | |
parent | 2be708b801e116029492fda0d5435fc04fe783fd (diff) |
Doc: Make snippets Qt Gui compilable - textdocument-imageformat
Task-number: QTBUG-81486
Change-Id: I9bf94bb8c82d7751a8615c6e1e3278400e77ce3a
Reviewed-by: Topi Reiniƶ <[email protected]>
Diffstat (limited to 'src/gui/doc/snippets/textdocument-imageformat')
-rw-r--r-- | src/gui/doc/snippets/textdocument-imageformat/main.cpp | 5 | ||||
-rw-r--r-- | src/gui/doc/snippets/textdocument-imageformat/textdocument-imageformat.pro | 11 |
2 files changed, 12 insertions, 4 deletions
diff --git a/src/gui/doc/snippets/textdocument-imageformat/main.cpp b/src/gui/doc/snippets/textdocument-imageformat/main.cpp index 89b09dc9b13..b69d75eb0aa 100644 --- a/src/gui/doc/snippets/textdocument-imageformat/main.cpp +++ b/src/gui/doc/snippets/textdocument-imageformat/main.cpp @@ -47,8 +47,9 @@ ** $QT_END_LICENSE$ ** ****************************************************************************/ - -#include <QtGui> +#include <QApplication> +#include <QTextBlock> +#include <QTextEdit> QString tr(const char *text) { diff --git a/src/gui/doc/snippets/textdocument-imageformat/textdocument-imageformat.pro b/src/gui/doc/snippets/textdocument-imageformat/textdocument-imageformat.pro index 1c6437050ab..f770f68593f 100644 --- a/src/gui/doc/snippets/textdocument-imageformat/textdocument-imageformat.pro +++ b/src/gui/doc/snippets/textdocument-imageformat/textdocument-imageformat.pro @@ -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 |