summaryrefslogtreecommitdiffstats
path: root/ksirc/toplevel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ksirc/toplevel.cpp')
-rw-r--r--ksirc/toplevel.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/ksirc/toplevel.cpp b/ksirc/toplevel.cpp
index fa53cded..44bca8a3 100644
--- a/ksirc/toplevel.cpp
+++ b/ksirc/toplevel.cpp
@@ -258,7 +258,7 @@ KSircTopLevel::KSircTopLevel(KSircProcess *_proc, const KSircChannel &channelInf
lag = new TQLabel(nicks_box);
lag->setFrameStyle(TQFrame::Panel|TQFrame::Sunken);
- lag->tqsetAlignment(TQt::AlignCenter | TQt::SingleLine);
+ lag->setAlignment(TQt::AlignCenter | TQt::SingleLine);
lag->setText(i18n("Lag: Wait"));
@@ -587,9 +587,9 @@ void KSircTopLevel::setMode(TQString mode, int mode_type, TQString currentNick)
{
TQString command;
if (mode_type == 0)
- command = TQString::tqfromLatin1("/mode %1 %2\n").tqarg(m_channelInfo.channel()).tqarg(mode);
+ command = TQString::fromLatin1("/mode %1 %2\n").tqarg(m_channelInfo.channel()).tqarg(mode);
else
- command = TQString::tqfromLatin1("/mode %1 %2\n").tqarg(currentNick).tqarg(mode);
+ command = TQString::fromLatin1("/mode %1 %2\n").tqarg(currentNick).tqarg(mode);
sirc_write(command);
linee->setFocus();
}
@@ -974,7 +974,7 @@ void KSircTopLevel::sirc_write(const TQString &str)
return;
}
else if ( plain.startsWith( "/away" ) ) {
- TQString awayEvalCommand = TQString::tqfromLatin1( "/eval $publicAway = %1\n" ).tqarg( ksopts->publicAway ? '1' : '0' );
+ TQString awayEvalCommand = TQString::fromLatin1( "/eval $publicAway = %1\n" ).tqarg( ksopts->publicAway ? '1' : '0' );
emit outputUnicodeLine( awayEvalCommand );
}
@@ -985,7 +985,7 @@ void KSircTopLevel::sirc_write(const TQString &str)
if(!isSpecialWindow()) { // channel or private chat
if(plain[0].latin1() != '/'){
- command.prepend(TQString::tqfromLatin1("/msg %1 ").tqarg(m_channelInfo.channel()));
+ command.prepend(TQString::fromLatin1("/msg %1 ").tqarg(m_channelInfo.channel()));
}
else if(plain.startsWith("/me ")) {
command.remove(0, 3);
@@ -1727,7 +1727,7 @@ void KSircTopLevel::outputUnicodeLine( const TQString &message )
void KSircTopLevel::setTopicIntern( const TQString &topic )
{
- TQString command = TQString::tqfromLatin1( "/topic %1 %2\n" ).tqarg( m_channelInfo.channel() ).tqarg( topic );
+ TQString command = TQString::fromLatin1( "/topic %1 %2\n" ).tqarg( m_channelInfo.channel() ).tqarg( topic );
sirc_write( command );
linee->setFocus();
}
@@ -1739,14 +1739,14 @@ void KSircTopLevel::doChange(bool pers, TQString text)
// beep only every 2 seconds otherwise it'll get very noisy in the room ;)
if ( TQABS( lastBeep.secsTo( ctime ) ) > 1 ) {
if ( pers ) {
- int winId = !ticker ? tqtopLevelWidget()->winId() : ticker->winId();
+ int winId = !ticker ? topLevelWidget()->winId() : ticker->winId();
KNotifyClient::event(winId,
- TQString::tqfromLatin1("ChannelPersonal"),
+ TQString::fromLatin1("ChannelPersonal"),
i18n("Your nick appeared on channel %1").tqarg(m_channelInfo.channel()));
} else {
- int winId = !ticker ? tqtopLevelWidget()->winId() : ticker->winId();
+ int winId = !ticker ? topLevelWidget()->winId() : ticker->winId();
KNotifyClient::event(winId,
- TQString::tqfromLatin1("ChannelChanged"),
+ TQString::fromLatin1("ChannelChanged"),
i18n("Channel %1 changed").tqarg(m_channelInfo.channel()));
}
lastBeep = ctime;