summaryrefslogtreecommitdiffstats
path: root/parts/outputviews/makeitem.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
commitd6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch)
treed109539636691d7b03036ca1c0ed29dbae6577cf /parts/outputviews/makeitem.cpp
parent3331a47a9cad24795c7440ee8107143ce444ef34 (diff)
downloadtdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz
tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'parts/outputviews/makeitem.cpp')
-rw-r--r--parts/outputviews/makeitem.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/parts/outputviews/makeitem.cpp b/parts/outputviews/makeitem.cpp
index c4d5a04c..218bb894 100644
--- a/parts/outputviews/makeitem.cpp
+++ b/parts/outputviews/makeitem.cpp
@@ -11,7 +11,7 @@
#include "makeitem.h"
-#include <qstylesheet.h>
+#include <tqstylesheet.h>
#include <kdebug.h>
#include <klocale.h>
@@ -22,7 +22,7 @@ MakeItem::MakeItem()
{
}
-MakeItem::MakeItem( const QString& text )
+MakeItem::MakeItem( const TQString& text )
: m_text( text )
{
}
@@ -31,7 +31,7 @@ MakeItem::~MakeItem()
{
}
-QString MakeItem::color( bool bright_bg )
+TQString MakeItem::color( bool bright_bg )
{
switch ( type() )
{
@@ -46,7 +46,7 @@ QString MakeItem::color( bool bright_bg )
}
}
-QString MakeItem::icon()
+TQString MakeItem::icon()
{
switch ( type() )
{
@@ -60,14 +60,14 @@ QString MakeItem::icon()
}
}
-QString MakeItem::text( EOutputLevel )
+TQString MakeItem::text( EOutputLevel )
{
- return QStyleSheet::escape( m_text );
+ return TQStyleSheet::escape( m_text );
}
-QString MakeItem::formattedText( EOutputLevel level, bool bright_bg )
+TQString MakeItem::formattedText( EOutputLevel level, bool bright_bg )
{
- QString txt = text(level);
+ TQString txt = text(level);
if (txt.isEmpty())
return "<br>";
if ( level == eFull )
@@ -76,24 +76,24 @@ QString MakeItem::formattedText( EOutputLevel level, bool bright_bg )
}
else
{
- return QString("<code>")
+ return TQString("<code>")
.append( icon() ).append("<font color=\"").append( color( bright_bg) ).append("\">")
.append( txt ).append("</font></code>").append( br() );
}
}
-QString MakeItem::br()
+TQString MakeItem::br()
{
// Qt >= 3.1 doesn't need a <br>.
#if QT_VERSION < 0x040000
- static const QString br = QString::fromLatin1( qVersion() ).section( ".", 1, 1 ).toInt() > 0 ? "" : "<br>";
+ static const TQString br = TQString::fromLatin1( qVersion() ).section( ".", 1, 1 ).toInt() > 0 ? "" : "<br>";
#else
- static const QString br;
+ static const TQString br;
#endif
return br;
}
-ErrorItem::ErrorItem( const QString& fn, int ln, const QString& tx, const QString& line, bool isWarning, bool isInstatiationInfo, const QString& compiler )
+ErrorItem::ErrorItem( const TQString& fn, int ln, const TQString& tx, const TQString& line, bool isWarning, bool isInstatiationInfo, const TQString& compiler )
: MakeItem( line )
, fileName(fn)
, lineNum(ln)
@@ -107,7 +107,7 @@ ErrorItem::~ErrorItem()
{
}
-bool ErrorItem::append( const QString& text )
+bool ErrorItem::append( const TQString& text )
{
if ( !text.startsWith(" ") )
return false;
@@ -133,34 +133,34 @@ ExitStatusItem::ExitStatusItem( bool normalExit, int exitStatus )
m_text = i18n("*** Success ***");
}
-QString ExitStatusItem::text( EOutputLevel )
+TQString ExitStatusItem::text( EOutputLevel )
{
return m_text;
}
bool DirectoryItem::m_showDirectoryMessages = true;
-QString EnteringDirectoryItem::text( EOutputLevel outputLevel )
+TQString EnteringDirectoryItem::text( EOutputLevel outputLevel )
{
if ( outputLevel < eFull )
return i18n("Entering directory %1").arg( directory );
return m_text;
}
-QString ExitingDirectoryItem::text( EOutputLevel outputLevel )
+TQString ExitingDirectoryItem::text( EOutputLevel outputLevel )
{
if ( outputLevel < eFull )
return i18n("Leaving directory %1").arg( directory );
return m_text;
}
-QString ActionItem::text( EOutputLevel outputLevel )
+TQString ActionItem::text( EOutputLevel outputLevel )
{
if ( outputLevel < eFull )
{
if ( m_tool.isEmpty() )
- return QString(m_action).append(" <b>").append(m_file).append("</b>");
- return QString(m_action).append(" <b>").append(m_file).append("</b>").append(" (").append(m_tool).append(")");
+ return TQString(m_action).append(" <b>").append(m_file).append("</b>");
+ return TQString(m_action).append(" <b>").append(m_file).append("</b>").append(" (").append(m_tool).append(")");
}
return MakeItem::text( outputLevel );
}