summaryrefslogtreecommitdiffstats
path: root/src/gui/doc/snippets/textblock-formats
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/doc/snippets/textblock-formats')
-rw-r--r--src/gui/doc/snippets/textblock-formats/main.cpp6
-rw-r--r--src/gui/doc/snippets/textblock-formats/textblock-formats.pro8
2 files changed, 9 insertions, 5 deletions
diff --git a/src/gui/doc/snippets/textblock-formats/main.cpp b/src/gui/doc/snippets/textblock-formats/main.cpp
index daa8f67f8bb..ec3075c2e32 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 d664835b09a..e7f408716fe 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