summaryrefslogtreecommitdiffstats
path: root/src/gui/doc/snippets/textblock-fragments/xmlwriter.cpp
diff options
context:
space:
mode:
authorNico Vertriest <[email protected]>2020-08-17 07:26:01 +0200
committerPaul Wicking <[email protected]>2020-09-01 06:13:11 +0200
commite1915cd83e3b1abc0a7eec5e9917739ed512b459 (patch)
treea2c361f5ba785a2a38472525b2f05c205a4abd81 /src/gui/doc/snippets/textblock-fragments/xmlwriter.cpp
parent37fbffee81be467fa5cee0ce83188e50c144947d (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.cpp12
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 &currentBlock,
void XmlWriter::processBlock(const QTextBlock &currentBlock)
{
+ // Dummy use of specified parameter currentBlock
+ QTextBlock localBlock;
+ localBlock = currentBlock;
+
}
void XmlWriter::processFragment(const QTextFragment &currentFragment)
{
+ // Dummy use of specified parameter currentFragment
+ QTextFragment localFragment;
+ localFragment = currentFragment;
}