summaryrefslogtreecommitdiffstats
path: root/cervisia/loginfo.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:51:49 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:51:49 +0000
commit4ae0c208b66e0f7954e194384464fe2d0a2c56dd (patch)
treeb0a7cd1c184f0003c0292eb416ed27f674f9cc43 /cervisia/loginfo.cpp
parent1964ea0fb4ab57493ca2ebb709c8d3b5395fd653 (diff)
downloadtdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.tar.gz
tdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1157652 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'cervisia/loginfo.cpp')
-rw-r--r--cervisia/loginfo.cpp52
1 files changed, 26 insertions, 26 deletions
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 <qstylesheet.h>
+#include <tqstylesheet.h>
#include <kglobal.h>
#include <klocale.h>
@@ -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("<nobr><b>"));
- text += QStyleSheet::escape(m_revision);
- text += QString::fromLatin1("</b>&nbsp;&nbsp;");
- text += QStyleSheet::escape(m_author);
- text += QString::fromLatin1("&nbsp;&nbsp;<b>");
- text += QStyleSheet::escape(dateTimeToString(showTime));
- text += QString::fromLatin1("</b></nobr>");
+ TQString text(TQString::fromLatin1("<nobr><b>"));
+ text += TQStyleSheet::escape(m_revision);
+ text += TQString::fromLatin1("</b>&nbsp;&nbsp;");
+ text += TQStyleSheet::escape(m_author);
+ text += TQString::fromLatin1("&nbsp;&nbsp;<b>");
+ text += TQStyleSheet::escape(dateTimeToString(showTime));
+ text += TQString::fromLatin1("</b></nobr>");
if (!m_comment.isEmpty())
{
- text += QString::fromLatin1("<pre>");
- text += QStyleSheet::escape(m_comment);
- text += QString::fromLatin1("</pre>");
+ text += TQString::fromLatin1("<pre>");
+ text += TQStyleSheet::escape(m_comment);
+ text += TQString::fromLatin1("</pre>");
}
if (!m_tags.isEmpty())
{
- text += QString::fromLatin1("<i>");
+ text += TQString::fromLatin1("<i>");
for (TTagInfoSeq::const_iterator it = m_tags.begin();
it != m_tags.end(); ++it)
{
if (it != m_tags.begin() || m_comment.isEmpty())
- text += QString::fromLatin1("<br>");
- text += QStyleSheet::escape((*it).toString());
+ text += TQString::fromLatin1("<br>");
+ text += TQStyleSheet::escape((*it).toString());
}
- text += QString::fromLatin1("</i>");
+ text += TQString::fromLatin1("</i>");
}
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)
{