Commit c95b9d1d authored by Arnold Dumas's avatar Arnold Dumas

Remove leftovers from Qt::escape().

Remove useless includes and comments related to the old Qt::escape().

Change-Id: Ice44317e5440c0dd41e770da6f1443ce687735f1
Reviewed-by: default avatarChristian Kandeler <christian.kandeler@theqtcompany.com>
parent 87676c82
...@@ -42,7 +42,6 @@ ...@@ -42,7 +42,6 @@
#include <QFile> #include <QFile>
#include <QFileInfo> #include <QFileInfo>
#include <QProcess> #include <QProcess>
#include <QTextDocument> // Qt::escape() in Qt 4
#include <QXmlStreamWriter> #include <QXmlStreamWriter>
namespace Beautifier { namespace Beautifier {
......
...@@ -40,7 +40,6 @@ ...@@ -40,7 +40,6 @@
#include <QFile> #include <QFile>
#include <QFileInfo> #include <QFileInfo>
#include <QProcess> #include <QProcess>
#include <QTextDocument> // Qt::escape() in Qt 4
#include <QXmlStreamWriter> #include <QXmlStreamWriter>
namespace Beautifier { namespace Beautifier {
...@@ -150,7 +149,6 @@ void UncrustifySettings::createDocumentationFile() const ...@@ -150,7 +149,6 @@ void UncrustifySettings::createDocumentationFile() const
while (++i < totalLines) { while (++i < totalLines) {
const QString &subline = lines.at(i); const QString &subline = lines.at(i);
if (line.startsWith(QLatin1Char('#')) || subline.trimmed().isEmpty()) { if (line.startsWith(QLatin1Char('#')) || subline.trimmed().isEmpty()) {
//TODO As soon as Qt 4 support is dropped, use toHtmlEscaped().
const QString text = QLatin1String("<p><span class=\"option\">") + keyword const QString text = QLatin1String("<p><span class=\"option\">") + keyword
+ QLatin1String("</span> <span class=\"param\">") + options + QLatin1String("</span> <span class=\"param\">") + options
+ QLatin1String("</span></p><p>") + QLatin1String("</span></p><p>")
......
...@@ -41,7 +41,6 @@ ...@@ -41,7 +41,6 @@
#include <QString> #include <QString>
#include <QPushButton> #include <QPushButton>
#include <QTreeView> #include <QTreeView>
#include <QTextDocument> // for Qt::escape
#include <QVBoxLayout> #include <QVBoxLayout>
#include <QKeyEvent> #include <QKeyEvent>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment