diff options
author | Nico Vertriest <[email protected]> | 2020-08-17 07:26:01 +0200 |
---|---|---|
committer | Paul Wicking <[email protected]> | 2020-09-01 06:13:11 +0200 |
commit | e1915cd83e3b1abc0a7eec5e9917739ed512b459 (patch) | |
tree | a2c361f5ba785a2a38472525b2f05c205a4abd81 /src/gui/doc/snippets/textblock-fragments/xmlwriter.cpp | |
parent | 37fbffee81be467fa5cee0ce83188e50c144947d (diff) |
Doc: Make snippets Qt Gui compilable - textblock-fragments
Task-number: QTBUG-81486
Change-Id: I3a6ee6ef744abb694d1cc7ef409f8bb584854395
Reviewed-by: Topi Reiniƶ <[email protected]>
Diffstat (limited to 'src/gui/doc/snippets/textblock-fragments/xmlwriter.cpp')
-rw-r--r-- | src/gui/doc/snippets/textblock-fragments/xmlwriter.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/gui/doc/snippets/textblock-fragments/xmlwriter.cpp b/src/gui/doc/snippets/textblock-fragments/xmlwriter.cpp index 1172b39847e..96a2fdfb099 100644 --- a/src/gui/doc/snippets/textblock-fragments/xmlwriter.cpp +++ b/src/gui/doc/snippets/textblock-fragments/xmlwriter.cpp @@ -47,11 +47,10 @@ ** $QT_END_LICENSE$ ** ****************************************************************************/ - -#include <QtGui> - #include "xmlwriter.h" +#include <QTextDocument> + QDomDocument *XmlWriter::toXml() { QDomImplementation implementation; @@ -120,8 +119,15 @@ void XmlWriter::readFragment(const QTextBlock ¤tBlock, void XmlWriter::processBlock(const QTextBlock ¤tBlock) { + // Dummy use of specified parameter currentBlock + QTextBlock localBlock; + localBlock = currentBlock; + } void XmlWriter::processFragment(const QTextFragment ¤tFragment) { + // Dummy use of specified parameter currentFragment + QTextFragment localFragment; + localFragment = currentFragment; } |