summaryrefslogtreecommitdiffstats
path: root/src/gui/doc/snippets/textdocument-frames/mainwindow.cpp
diff options
context:
space:
mode:
authorPaul Wicking <[email protected]>2020-08-29 13:24:21 +0200
committerPaul Wicking <[email protected]>2020-08-31 07:12:37 +0200
commitbbbbd642d506888b855d9763cdfa4e1b8de56326 (patch)
tree51024cb471ce242f68bb9cc4eb1f9322586fed9f /src/gui/doc/snippets/textdocument-frames/mainwindow.cpp
parent52abab1b420a237799b640db74bd072cf0db6336 (diff)
Doc: Remove obsolete/removed snippet code
Task-number: QTBUG-81486 Change-Id: Ifc6ac9203a046b6b5da6140931c59875f0dc08c3 Reviewed-by: Volker Hilsheimer <[email protected]>
Diffstat (limited to 'src/gui/doc/snippets/textdocument-frames/mainwindow.cpp')
-rw-r--r--src/gui/doc/snippets/textdocument-frames/mainwindow.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/gui/doc/snippets/textdocument-frames/mainwindow.cpp b/src/gui/doc/snippets/textdocument-frames/mainwindow.cpp
index 620f41708ad..96b84fe61a2 100644
--- a/src/gui/doc/snippets/textdocument-frames/mainwindow.cpp
+++ b/src/gui/doc/snippets/textdocument-frames/mainwindow.cpp
@@ -51,7 +51,6 @@
#include <QtWidgets>
#include "mainwindow.h"
-#include "xmlwriter.h"
MainWindow::MainWindow()
{
@@ -151,18 +150,4 @@ void MainWindow::saveFile()
QMessageBox::NoButton);
}
}
-bool MainWindow::writeXml(const QString &fileName)
-{
- XmlWriter documentWriter(editor->document());
-
- QDomDocument *domDocument = documentWriter.toXml();
- QFile file(fileName);
- if (file.open(QFile::WriteOnly)) {
- file.write(domDocument->toString(1).toUtf8());
- file.close();
- return true;
- }
- else
- return false;
-}