summaryrefslogtreecommitdiffstats
path: root/konversation/src/ircview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'konversation/src/ircview.cpp')
-rw-r--r--konversation/src/ircview.cpp60
1 files changed, 30 insertions, 30 deletions
diff --git a/konversation/src/ircview.cpp b/konversation/src/ircview.cpp
index bc392bf..6b3342b 100644
--- a/konversation/src/ircview.cpp
+++ b/konversation/src/ircview.cpp
@@ -28,12 +28,12 @@
#include "notificationhandler.h"
#include <tqrichtext_p.h>
-#include <stylesheet.h>
+#include <tqstylesheet.h>
#include <tqstringlist.h>
#include <tqregexp.h>
-#include <textbrowser.h>
-#include <clipboard.h>
-#include <brush.h>
+#include <tqtextbrowser.h>
+#include <tqclipboard.h>
+#include <tqbrush.h>
#include <tqevent.h>
#include <tqdragobject.h>
#include <tqpopupmenu.h>
@@ -267,7 +267,7 @@ void IRCView::highlightedSlot(const TQString& _link)
m_currentNick = link.mid(1);
m_nickPopup->changeTitle(m_nickPopupId,m_currentNick);
m_isOnNick = true;
- emit setStatusBarTempText(i18n("Open a query with %1").arg(m_currentNick));
+ emit setStatusBarTempText(i18n("Open a query with %1").tqarg(m_currentNick));
}
else
{
@@ -284,7 +284,7 @@ void IRCView::highlightedSlot(const TQString& _link)
m_channelPopup->changeTitle(m_channelPopupId,prettyId);
m_isOnChannel = true;
- emit setStatusBarTempText(i18n("Join the channel %1").arg(m_currentChannel));
+ emit setStatusBarTempText(i18n("Join the channel %1").tqarg(m_currentChannel));
}
}
@@ -353,7 +353,7 @@ void IRCView::replaceDecoration(TQString& line, char decoration, char replacemen
while((pos=line.find(decoration))!=-1)
{
- line.replace(pos,1,(decorated) ? TQString("</%1>").arg(replacement) : TQString("<%1>").arg(replacement));
+ line.replace(pos,1,(decorated) ? TQString("</%1>").tqarg(replacement) : TQString("<%1>").tqarg(replacement));
decorated = !decorated;
}
}
@@ -532,7 +532,7 @@ bool doHighlight, bool parseURL, bool self)
(whoSent.find(needleReg) != -1));
// remember captured patterns for later
- captures=needleReg.capturedTexts();
+ captures=needleReg.tqcapturedTexts();
}
else
@@ -573,7 +573,7 @@ bool doHighlight, bool parseURL, bool self)
// replace %0 - %9 in regex groups
for(unsigned int capture=0;capture<captures.count();capture++)
{
- m_autoTextToSend.replace(TQString("%%1").arg(capture),captures[capture]);
+ m_autoTextToSend.replace(TQString("%%1").tqarg(capture),captures[capture]);
}
m_autoTextToSend.replace(TQRegExp("%[0-9]"),TQString());
}
@@ -645,7 +645,7 @@ TQString IRCView::createNickLine(const TQString& nick, bool encapsulateNick, boo
for (uint index = 0; index < nick.length(); index++)
{
- nickvalue += nick[index].unicode();
+ nickvalue += nick[index].tqunicode();
}
nickColor = Preferences::nickColor((nickvalue % 8)).name();
@@ -692,9 +692,9 @@ void IRCView::append(const TQString& nick,const TQString& message)
line = "<p><font color=\"" + channelColor + "\">%1" + nickLine + " %3</font></p>\n";
}
- line = line.arg(timeStamp(), nick, filter(message, channelColor, nick, true));
+ line = line.tqarg(timeStamp(), nick, filter(message, channelColor, nick, true));
- emit textToLog(TQString("<%1>\t%2").arg(nick).arg(message));
+ emit textToLog(TQString("<%1>\t%2").tqarg(nick).tqarg(message));
doAppend(line);
}
@@ -874,9 +874,9 @@ void IRCView::appendQuery(const TQString& nick, const TQString& message, bool in
line = "<p><font color=\"" + queryColor + "\">%1 " + nickLine + " %3</font></p>\n";
}
- line = line.arg(timeStamp(), nick, filter(message, queryColor, nick, true));
+ line = line.tqarg(timeStamp(), nick, filter(message, queryColor, nick, true));
- emit textToLog(TQString("<%1>\t%2").arg(nick).arg(message));
+ emit textToLog(TQString("<%1>\t%2").tqarg(nick).tqarg(message));
doAppend(line);
}
@@ -917,9 +917,9 @@ void IRCView::appendAction(const TQString& nick,const TQString& message)
line = "<p><font color=\"" + actionColor + "\">%1 * " + nickLine + " %3</font></p>\n";
}
- line = line.arg(timeStamp(), nick, filter(message, actionColor, nick, true));
+ line = line.tqarg(timeStamp(), nick, filter(message, actionColor, nick, true));
- emit textToLog(TQString("\t * %1 %2").arg(nick).arg(message));
+ emit textToLog(TQString("\t * %1 %2").tqarg(nick).tqarg(message));
doAppend(line);
}
@@ -951,11 +951,11 @@ void IRCView::appendServerMessage(const TQString& type, const TQString& message,
}
if(type != i18n("Notify"))
- line = line.arg(timeStamp(), type, filter(message, serverColor, 0 , true, parseURL));
+ line = line.tqarg(timeStamp(), type, filter(message, serverColor, 0 , true, parseURL));
else
- line = "<font color=\"" + serverColor + "\">"+line.arg(timeStamp(), type, message)+"</font>";
+ line = "<font color=\"" + serverColor + "\">"+line.tqarg(timeStamp(), type, message)+"</font>";
- emit textToLog(TQString("%1\t%2").arg(type).arg(message));
+ emit textToLog(TQString("%1\t%2").tqarg(type).tqarg(message));
doAppend(line);
}
@@ -993,9 +993,9 @@ void IRCView::appendCommandMessage(const TQString& type,const TQString& message,
line = "<p><font color=\"" + commandColor + "\">%1 %2 %3</font></p>\n";
}
- line = line.arg(timeStamp(), prefix, filter(message, commandColor, 0, true, parseURL, self));
+ line = line.tqarg(timeStamp(), prefix, filter(message, commandColor, 0, true, parseURL, self));
- emit textToLog(TQString("%1\t%2").arg(type).arg(message));
+ emit textToLog(TQString("%1\t%2").tqarg(type).tqarg(message));
doAppend(line, self);
}
@@ -1031,7 +1031,7 @@ void IRCView::appendBacklogMessage(const TQString& firstColumn,const TQString& r
line = "<p><font color=\"" + backlogColor + "\">%1 %2 %3</font></p>\n";
}
- line = line.arg(time, nick, filter(message, backlogColor, NULL, false, false));
+ line = line.tqarg(time, nick, filter(message, backlogColor, NULL, false, false));
doAppend(line);
}
@@ -1251,7 +1251,7 @@ void IRCView::contentsMouseMoveEvent(TQMouseEvent* ev)
if (m_server && m_urlToDrag.startsWith("##"))
{
//FIXME consistent IRC URL serialization
- ux = TQString("irc://%1:%2/%3").arg(m_server->getServerName()).arg(m_server->getPort()).arg(m_urlToDrag.mid(2));
+ ux = TQString("irc://%1:%2/%3").tqarg(m_server->getServerName()).tqarg(m_server->getPort()).tqarg(m_urlToDrag.mid(2));
}
else if (m_urlToDrag.startsWith("#"))
{
@@ -1344,7 +1344,7 @@ bool IRCView::contextMenu(TQContextMenuEvent* ce)
break;
case CopyUrl:
{
- TQClipboard *cb = KApplication::kApplication()->clipboard();
+ TQClipboard *cb = KApplication::kApplication()->tqclipboard();
cb->setText(m_urlToCopy,TQClipboard::Selection);
cb->setText(m_urlToCopy,TQClipboard::Clipboard);
break;
@@ -1545,7 +1545,7 @@ void IRCView::searchAgain()
if(!find(m_pattern, m_caseSensitive, m_wholeWords, m_forward, &m_findParagraph, &m_findIndex))
{
- KMessageBox::information(this,i18n("No matches found for \"%1\".").arg(m_pattern),i18n("Information"));
+ KMessageBox::information(this,i18n("No matches found for \"%1\".").tqarg(m_pattern),i18n("Information"));
}
}
@@ -1621,8 +1621,8 @@ TQPopupMenu* IRCView::getPopup() const
}
// for more information about these RTFM
-// http://www.unicode.org/reports/tr9/
-// http://www.w3.org/TR/unicode-xml/
+// http://www.tqunicode.org/reports/tr9/
+// http://www.w3.org/TR/tqunicode-xml/
TQChar IRCView::LRM = (ushort)0x200e; // Right-to-Left Mark
TQChar IRCView::RLM = (ushort)0x200f; // Left-to-Right Mark
TQChar IRCView::LRE = (ushort)0x202a; // Left-to-Right Embedding
@@ -1705,14 +1705,14 @@ TQString IRCView::timeStamp()
if(!Preferences::showDate())
{
- timeString = TQString("<font color=\"" + timeColor + "\">[%1]</font> ").arg(time.toString(timeFormat));
+ timeString = TQString("<font color=\"" + timeColor + "\">[%1]</font> ").tqarg(time.toString(timeFormat));
}
else
{
- TQDate date = TQDate::currentDate();
+ TQDate date = TQDate::tqcurrentDate();
timeString = TQString("<font color=\"" +
timeColor + "\">[%1 %2]</font> ")
- .arg(KGlobal::locale()->formatDate(date, true /*short format*/),
+ .tqarg(KGlobal::locale()->formatDate(date, true /*short format*/),
time.toString(timeFormat));
}