From 4ae0c208b66e0f7954e194384464fe2d0a2c56dd Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:51:49 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1157652 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- cervisia/loginfo.cpp | 52 ++++++++++++++++++++++++++-------------------------- 1 file changed, 26 insertions(+), 26 deletions(-) (limited to 'cervisia/loginfo.cpp') diff --git a/cervisia/loginfo.cpp b/cervisia/loginfo.cpp index 49f7efb2..b97ff1f0 100644 --- a/cervisia/loginfo.cpp +++ b/cervisia/loginfo.cpp @@ -19,7 +19,7 @@ #include "loginfo.h" -#include +#include #include #include @@ -29,19 +29,19 @@ namespace Cervisia { -TagInfo::TagInfo(const QString& name, Type type) +TagInfo::TagInfo(const TQString& name, Type type) : m_name(name), m_type(type) { } -QString TagInfo::toString(bool prefixWithType) const +TQString TagInfo::toString(bool prefixWithType) const { - QString text; + TQString text; if (prefixWithType) { - text += typeToString() + QString::fromLatin1(": "); + text += typeToString() + TQString::fromLatin1(": "); } text += m_name; @@ -49,9 +49,9 @@ QString TagInfo::toString(bool prefixWithType) const } -QString TagInfo::typeToString() const +TQString TagInfo::typeToString() const { - QString text; + TQString text; switch (m_type) { case Branch: @@ -69,41 +69,41 @@ QString TagInfo::typeToString() const } -QString LogInfo::createToolTipText(bool showTime) const +TQString LogInfo::createToolTipText(bool showTime) const { - QString text(QString::fromLatin1("")); - text += QStyleSheet::escape(m_revision); - text += QString::fromLatin1("  "); - text += QStyleSheet::escape(m_author); - text += QString::fromLatin1("  "); - text += QStyleSheet::escape(dateTimeToString(showTime)); - text += QString::fromLatin1(""); + TQString text(TQString::fromLatin1("")); + text += TQStyleSheet::escape(m_revision); + text += TQString::fromLatin1("  "); + text += TQStyleSheet::escape(m_author); + text += TQString::fromLatin1("  "); + text += TQStyleSheet::escape(dateTimeToString(showTime)); + text += TQString::fromLatin1(""); if (!m_comment.isEmpty()) { - text += QString::fromLatin1("
");
-        text += QStyleSheet::escape(m_comment);
-        text += QString::fromLatin1("
"); + text += TQString::fromLatin1("
");
+        text += TQStyleSheet::escape(m_comment);
+        text += TQString::fromLatin1("
"); } if (!m_tags.isEmpty()) { - text += QString::fromLatin1(""); + text += TQString::fromLatin1(""); for (TTagInfoSeq::const_iterator it = m_tags.begin(); it != m_tags.end(); ++it) { if (it != m_tags.begin() || m_comment.isEmpty()) - text += QString::fromLatin1("
"); - text += QStyleSheet::escape((*it).toString()); + text += TQString::fromLatin1("
"); + text += TQStyleSheet::escape((*it).toString()); } - text += QString::fromLatin1("
"); + text += TQString::fromLatin1("
"); } return text; } -QString LogInfo::dateTimeToString(bool showTime, bool shortFormat) const +TQString LogInfo::dateTimeToString(bool showTime, bool shortFormat) const { if( showTime ) return KGlobal::locale()->formatDateTime(m_dateTime, shortFormat); @@ -112,11 +112,11 @@ QString LogInfo::dateTimeToString(bool showTime, bool shortFormat) const } -QString LogInfo::tagsToString(unsigned int types, +TQString LogInfo::tagsToString(unsigned int types, unsigned int prefixWithType, - const QString& separator) const + const TQString& separator) const { - QString text; + TQString text; for (TTagInfoSeq::const_iterator it = m_tags.begin(); it != m_tags.end(); ++it) { -- cgit v1.2.1