summaryrefslogtreecommitdiffstats
path: root/parts/outputviews/makeitem.cpp
diff options
context:
space:
mode:
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 );
}