Commit ec1a8982 authored by André Wöbbeking's avatar André Wöbbeking

Q3StyleSheet::escape() -> Qt::escape()

svn path=/branches/work/kde4/kdesdk/cervisia/; revision=432803
parent 43badc3f
......@@ -19,7 +19,7 @@
#include "loginfo.h"
#include <q3stylesheet.h>
#include <qtextdocument.h>
#include <kglobal.h>
#include <klocale.h>
......@@ -72,17 +72,17 @@ QString TagInfo::typeToString() const
QString LogInfo::createToolTipText(bool showTime) const
{
QString text(QString::fromLatin1("<nobr><b>"));
text += Q3StyleSheet::escape(m_revision);
text += Qt::escape(m_revision);
text += QString::fromLatin1("</b>&nbsp;&nbsp;");
text += Q3StyleSheet::escape(m_author);
text += Qt::escape(m_author);
text += QString::fromLatin1("&nbsp;&nbsp;<b>");
text += Q3StyleSheet::escape(dateTimeToString(showTime));
text += Qt::escape(dateTimeToString(showTime));
text += QString::fromLatin1("</b></nobr>");
if (!m_comment.isEmpty())
{
text += QString::fromLatin1("<pre>");
text += Q3StyleSheet::escape(m_comment);
text += Qt::escape(m_comment);
text += QString::fromLatin1("</pre>");
}
......@@ -94,7 +94,7 @@ QString LogInfo::createToolTipText(bool showTime) const
{
if (it != m_tags.begin() || m_comment.isEmpty())
text += QString::fromLatin1("<br>");
text += Q3StyleSheet::escape((*it).toString());
text += Qt::escape((*it).toString());
}
text += QString::fromLatin1("</i>");
}
......
......@@ -21,7 +21,7 @@
#include <qregexp.h>
#include <qstringlist.h>
#include <q3stylesheet.h>
#include <qtextdocument.h>
#include <kfind.h>
#include <kfinddialog.h>
#include <klocale.h>
......@@ -53,17 +53,17 @@ void LogPlainView::addRevision(const LogInfo& logInfo)
// assemble revision information lines
QString logEntry;
logEntry += "<b>" + i18n("revision %1").arg(Q3StyleSheet::escape(logInfo.m_revision)) +
logEntry += "<b>" + i18n("revision %1").arg(Qt::escape(logInfo.m_revision)) +
"</b>";
logEntry += " &nbsp;[<a href=\"revA#" + Q3StyleSheet::escape(logInfo.m_revision) + "\">" +
logEntry += " &nbsp;[<a href=\"revA#" + Qt::escape(logInfo.m_revision) + "\">" +
i18n("Select for revision A") +
"</a>]";
logEntry += " [<a href=\"revB#" + Q3StyleSheet::escape(logInfo.m_revision) + "\">" +
logEntry += " [<a href=\"revB#" + Qt::escape(logInfo.m_revision) + "\">" +
i18n("Select for revision B") +
"</a>]<br>";
logEntry += "<i>" +
i18n("date: %1; author: %2").arg(Q3StyleSheet::escape(logInfo.dateTimeToString()))
.arg(Q3StyleSheet::escape(logInfo.m_author)) +
i18n("date: %1; author: %2").arg(Qt::escape(logInfo.dateTimeToString()))
.arg(Qt::escape(logInfo.m_author)) +
"</i>";
append(logEntry);
......@@ -89,7 +89,7 @@ void LogPlainView::addRevision(const LogInfo& logInfo)
for( LogInfo::TTagInfoSeq::const_iterator it = logInfo.m_tags.begin();
it != logInfo.m_tags.end(); ++it )
{
append("<i>" + Q3StyleSheet::escape((*it).toString()) + "</i>");
append("<i>" + Qt::escape((*it).toString()) + "</i>");
}
// add an empty line when we had tags or branches
......
......@@ -23,6 +23,7 @@
#include <qdir.h>
#include <q3popupmenu.h>
#include <qtextdocument.h>
#include <dcopref.h>
#include <kconfig.h>
#include <klocale.h>
......@@ -159,7 +160,7 @@ void ProtocolView::appendLine(const QString &line)
{
// Escape output line, so that html tags in commit
// messages aren't interpreted
const QString escapedLine = Q3StyleSheet::escape(line);
const QString escapedLine = Qt::escape(line);
// When we don't get the output from an update job then
// just add it to the text edit.
......
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