summaryrefslogtreecommitdiffstats
path: root/src/gui/logview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/logview.cpp')
-rw-r--r--src/gui/logview.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/src/gui/logview.cpp b/src/gui/logview.cpp
index fcb8caf..690b593 100644
--- a/src/gui/logview.cpp
+++ b/src/gui/logview.cpp
@@ -14,20 +14,20 @@
#include <kiconloader.h>
#include <katemdi.h>
#include <klocale.h>
-#include <qpopupmenu.h>
+#include <tqpopupmenu.h>
//BEGIN class LogView
-LogView::LogView( KateMDI::ToolView * parent, const char *name )
- : KTextEdit( parent, name )
+LogView::LogView( KateMDI::ToolView * tqparent, const char *name )
+ : KTextEdit( tqparent, name )
{
setReadOnly(true);
- setPaper( Qt::white );
+ setPaper( TQt::white );
setTextFormat( LogText );
setWordWrap( WidgetWidth );
// Connect up signal emitted when the user doubleclicks on a paragraph in the log view
- connect( this, SIGNAL(clicked(int,int)), this, SLOT(slotParaClicked(int,int)) );
+ connect( this, TQT_SIGNAL(clicked(int,int)), this, TQT_SLOT(slotParaClicked(int,int)) );
}
@@ -43,29 +43,29 @@ void LogView::clear()
}
-void LogView::addOutput( QString text, OutputType outputType, MessageInfo messageInfo )
+void LogView::addOutput( TQString text, OutputType outputType, MessageInfo messageInfo )
{
tidyText(text);
switch(outputType)
{
case LogView::ot_important:
- append( QString("<font color=\"#000000\"><b>%1</b></font>").arg(text) );
+ append( TQString("<font color=\"#000000\"><b>%1</b></font>").tqarg(text) );
break;
case LogView::ot_info:
- append( QString("<font color=\"#000000\"><i>%1</i></font>").arg(text) );
+ append( TQString("<font color=\"#000000\"><i>%1</i></font>").tqarg(text) );
break;
case LogView::ot_message:
- append( QString("<font color=\"#000000\">%1</font>").arg(text) );
+ append( TQString("<font color=\"#000000\">%1</font>").tqarg(text) );
break;
case LogView::ot_warning:
- append( QString("<font color=\"#666666\">%1</font>").arg(text) );
+ append( TQString("<font color=\"#666666\">%1</font>").tqarg(text) );
break;
case LogView::ot_error:
- append( QString("<font color=\"#800000\">%1</font>").arg(text) );
+ append( TQString("<font color=\"#800000\">%1</font>").tqarg(text) );
break;
}
@@ -75,34 +75,34 @@ void LogView::addOutput( QString text, OutputType outputType, MessageInfo messag
void LogView::slotParaClicked( int para, int /*pos*/ )
{
- QString t = text(para);
+ TQString t = text(para);
untidyText(t);
emit paraClicked( t, m_messageInfoMap[para] );
}
-void LogView::tidyText( QString &t )
+void LogView::tidyText( TQString &t )
{
- t.replace( "&", "&amp;" );
- t.replace( "<", "&lt;" );
- t.replace( ">", "&gt;" );
+ t.tqreplace( "&", "&amp;" );
+ t.tqreplace( "<", "&lt;" );
+ t.tqreplace( ">", "&gt;" );
}
-void LogView::untidyText( QString &t )
+void LogView::untidyText( TQString &t )
{
- t.replace( "&lt;", "<" );
- t.replace( "&gt;", ">" );
- t.replace( "&amp;", "&" );
+ t.tqreplace( "&lt;", "<" );
+ t.tqreplace( "&gt;", ">" );
+ t.tqreplace( "&amp;", "&" );
}
-QPopupMenu * LogView::createPopupMenu( const QPoint & pos )
+TQPopupMenu * LogView::createPopupMenu( const TQPoint & pos )
{
- QPopupMenu * menu = KTextEdit::createPopupMenu( pos );
+ TQPopupMenu * menu = KTextEdit::createPopupMenu( pos );
menu->insertSeparator();
- int id = menu->insertItem( i18n("Clear All"), this, SLOT(clear()) );
+ int id = menu->insertItem( i18n("Clear All"), this, TQT_SLOT(clear()) );
// "an empty textedit is always considered to have one paragraph" - qt documentation
// although this does not always seem to be the case, so I don't know...
@@ -121,7 +121,7 @@ MessageInfo::MessageInfo()
}
-MessageInfo::MessageInfo( QString fileURL, int fileLine )
+MessageInfo::MessageInfo( TQString fileURL, int fileLine )
{
m_fileURL = fileURL;
m_fileLine = fileLine;