diff options
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 |
