summaryrefslogtreecommitdiffstats
path: root/src/gui/doc
diff options
context:
space:
mode:
authorNico Vertriest <nico.vertriest@qt.io>2020-08-03 15:48:09 +0200
committerPaul Wicking <paul.wicking@qt.io>2020-09-01 06:13:00 +0200
commit0f1c8d437ffc24615fbf53c270ae88097b2a8125 (patch)
tree4b5e30b3de412bd4988c1748994ef517a870f901 /src/gui/doc
parent2c7d46727ed1de7c8233f0520cc40e9e6ce72fac (diff)
Doc: Make snippets Qt Gui compilable - textdocument-css
Task-number: QTBUG-81486 Change-Id: I4c73a0902bc1c47cd2fa90553941bf8824ba5914 Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
Diffstat (limited to 'src/gui/doc')
-rw-r--r--src/gui/doc/snippets/snippets.pro1
-rw-r--r--src/gui/doc/snippets/textdocument-css/main.cpp4
-rw-r--r--src/gui/doc/snippets/textdocument-css/textdocument-css.pro5
3 files changed, 8 insertions, 2 deletions
diff --git a/src/gui/doc/snippets/snippets.pro b/src/gui/doc/snippets/snippets.pro
index 40501757a7..d97e243bcb 100644
--- a/src/gui/doc/snippets/snippets.pro
+++ b/src/gui/doc/snippets/snippets.pro
@@ -10,5 +10,6 @@ contains(QT_BUILD_PARTS, tests) {
qfontdatabase \
textdocument-blocks \
textdocument-charformats \
+ textdocument-css \
textdocument-end
}
diff --git a/src/gui/doc/snippets/textdocument-css/main.cpp b/src/gui/doc/snippets/textdocument-css/main.cpp
index d8aac0c5f5..418230c65b 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 0000000000..40f64b200f
--- /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