summaryrefslogtreecommitdiff
path: root/src/gui/doc/snippets
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/doc/snippets')
-rw-r--r--src/gui/doc/snippets/snippets.pro1
-rw-r--r--src/gui/doc/snippets/textblock-formats/main.cpp6
-rw-r--r--src/gui/doc/snippets/textblock-formats/textblock-formats.pro8
3 files changed, 10 insertions, 5 deletions
diff --git a/src/gui/doc/snippets/snippets.pro b/src/gui/doc/snippets/snippets.pro
index 6ede3d94ed..85876c15d4 100644
--- a/src/gui/doc/snippets/snippets.pro
+++ b/src/gui/doc/snippets/snippets.pro
@@ -9,6 +9,7 @@ contains(QT_BUILD_PARTS, tests) {
draganddrop \
droparea \
qfontdatabase \
+ textblock-formats \
textdocument-blocks \
textdocument-charformats \
textdocument-css \
diff --git a/src/gui/doc/snippets/textblock-formats/main.cpp b/src/gui/doc/snippets/textblock-formats/main.cpp
index daa8f67f8b..ec3075c2e3 100644
--- a/src/gui/doc/snippets/textblock-formats/main.cpp
+++ b/src/gui/doc/snippets/textblock-formats/main.cpp
@@ -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);
diff --git a/src/gui/doc/snippets/textblock-formats/textblock-formats.pro b/src/gui/doc/snippets/textblock-formats/textblock-formats.pro
index d664835b09..e7f408716f 100644
--- a/src/gui/doc/snippets/textblock-formats/textblock-formats.pro
+++ b/src/gui/doc/snippets/textblock-formats/textblock-formats.pro
@@ -1,2 +1,6 @@
-QT += xml
-SOURCES = main.cpp
+TEMPLATE = lib
+TARGET = gui_snippets_textblock_formats
+QT += core gui widgets
+
+SOURCES = \
+ main.cpp