summaryrefslogtreecommitdiffstats
path: root/src/gui/doc/snippets/textdocument-listitemstyles/mainwindow.h
diff options
context:
space:
mode:
authorNico Vertriest <nico.vertriest@qt.io>2020-08-05 10:59:58 +0200
committerPaul Wicking <paul.wicking@qt.io>2020-09-01 06:13:05 +0200
commitfec48857e89b814ce522a6b34f8d4e4fb95cc243 (patch)
treeaeb735471da57b9bbab18d4d5e55cc158eac1548 /src/gui/doc/snippets/textdocument-listitemstyles/mainwindow.h
parent29949cc0f7811cb3b92fac0ac9aa57bf77856785 (diff)
Doc: Make Qt Gui snippets compilable - textdocument-listitemstyles
Task-number: QTBUG-81486 Change-Id: Ie718f4ae3de3f9ae12702264f5455f23d38bf1fe Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
Diffstat (limited to 'src/gui/doc/snippets/textdocument-listitemstyles/mainwindow.h')
-rw-r--r--src/gui/doc/snippets/textdocument-listitemstyles/mainwindow.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/doc/snippets/textdocument-listitemstyles/mainwindow.h b/src/gui/doc/snippets/textdocument-listitemstyles/mainwindow.h
index baf9be5f0d..6219863e64 100644
--- a/src/gui/doc/snippets/textdocument-listitemstyles/mainwindow.h
+++ b/src/gui/doc/snippets/textdocument-listitemstyles/mainwindow.h
@@ -68,8 +68,8 @@ public slots:
private:
QString currentFile;
- QTextEdit *editor;
- QTextDocument *document;
+ QTextEdit *editor = nullptr;
+ QTextDocument *document = nullptr;
};
#endif