summaryrefslogtreecommitdiffstats
path: root/src/gui/doc/snippets/textdocument-css
diff options
context:
space:
mode:
authorNico Vertriest <[email protected]>2020-08-03 15:48:09 +0200
committerPaul Wicking <[email protected]>2020-09-01 06:13:00 +0200
commit0f1c8d437ffc24615fbf53c270ae88097b2a8125 (patch)
tree4b5e30b3de412bd4988c1748994ef517a870f901 /src/gui/doc/snippets/textdocument-css
parent2c7d46727ed1de7c8233f0520cc40e9e6ce72fac (diff)
Doc: Make snippets Qt Gui compilable - textdocument-css
Task-number: QTBUG-81486 Change-Id: I4c73a0902bc1c47cd2fa90553941bf8824ba5914 Reviewed-by: Topi Reiniƶ <[email protected]>
Diffstat (limited to 'src/gui/doc/snippets/textdocument-css')
-rw-r--r--src/gui/doc/snippets/textdocument-css/main.cpp4
-rw-r--r--src/gui/doc/snippets/textdocument-css/textdocument-css.pro5
2 files changed, 7 insertions, 2 deletions
diff --git a/src/gui/doc/snippets/textdocument-css/main.cpp b/src/gui/doc/snippets/textdocument-css/main.cpp
index d8aac0c5f54..418230c65b4 100644
--- a/src/gui/doc/snippets/textdocument-css/main.cpp
+++ b/src/gui/doc/snippets/textdocument-css/main.cpp
@@ -47,8 +47,8 @@
** $QT_END_LICENSE$
**
****************************************************************************/
-
-#include <QtGui>
+#include <QApplication>
+#include <QTextBrowser>
int main(int argc, char **argv)
{
diff --git a/src/gui/doc/snippets/textdocument-css/textdocument-css.pro b/src/gui/doc/snippets/textdocument-css/textdocument-css.pro
new file mode 100644
index 00000000000..40f64b200fc
--- /dev/null
+++ b/src/gui/doc/snippets/textdocument-css/textdocument-css.pro
@@ -0,0 +1,5 @@
+TEMPLATE = lib
+TARGET = textdocument-css
+QT += core gui widgets
+
+SOURCES += main.cpp