summaryrefslogtreecommitdiffstats
path: root/quanta/messages/messageitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'quanta/messages/messageitem.cpp')
-rw-r--r--quanta/messages/messageitem.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/quanta/messages/messageitem.cpp b/quanta/messages/messageitem.cpp
index 7f906041..dc1c7ad8 100644
--- a/quanta/messages/messageitem.cpp
+++ b/quanta/messages/messageitem.cpp
@@ -16,11 +16,11 @@
***************************************************************************/
#include "messageitem.h"
-#include <qregexp.h>
+#include <tqregexp.h>
#include <klocale.h>
-MessageItem::MessageItem( QListBox * listbox, const QString &text, int line, int column, const QString &fname )
- :QListBoxText(listbox,text),lineNumber(line),columnNumber(column),filename(fname)
+MessageItem::MessageItem( TQListBox * listbox, const TQString &text, int line, int column, const TQString &fname )
+ :TQListBoxText(listbox,text),lineNumber(line),columnNumber(column),filename(fname)
{
}
@@ -30,14 +30,14 @@ int MessageItem::line()
return lineNumber;
}
else { // try to find first number in text
- QString s = text();
- int pos = s.find( QRegExp("[0-9]"));
+ TQString s = text();
+ int pos = s.find( TQRegExp("[0-9]"));
if ( pos == -1 )
return lineNumber;
int pos2 = pos;
while ( s[pos2].isDigit() ) pos2++;
- QString snum = s.mid(pos, pos2-pos);
+ TQString snum = s.mid(pos, pos2-pos);
return snum.toInt();
}
@@ -50,8 +50,8 @@ int MessageItem::column()
return columnNumber;
} else
{
- QString s = text();
- QRegExp exp("(?:\\D|^)(\\d{1,4})(?:\\D|$)");
+ TQString s = text();
+ TQRegExp exp("(?:\\D|^)(\\d{1,4})(?:\\D|$)");
int pos = exp.search(s);
if ( pos == -1 )
@@ -64,12 +64,12 @@ int MessageItem::column()
}
}
-QString MessageItem::fileName()
+TQString MessageItem::fileName()
{
if (filename.isEmpty())
{
- QString fname;
- QString s = text();
+ TQString fname;
+ TQString s = text();
int pos = s.find(i18n("File: "));
if (pos != -1)
{
@@ -85,7 +85,7 @@ QString MessageItem::fileName()
return filename;
}
-void MessageItem::addText(const QString &t)
+void MessageItem::addText(const TQString &t)
{
setText( text() + t );
}