diff options
author | Timothy Pearson <[email protected]> | 2011-12-19 11:55:35 -0600 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2012-06-04 01:10:53 +0200 |
commit | 00e58f1937047eb6c23edbdb3ae7ed5feec7a572 (patch) | |
tree | 33b3465e8515be992049db8cc3fd529660f9731a /libkdegames/kchatbase.cpp | |
parent | 9e8c9cf72cdda55e3c96c7ef072c3358061d53c9 (diff) | |
download | tdegames-00e58f1937047eb6c23edbdb3ae7ed5feec7a572.tar.gz tdegames-00e58f1937047eb6c23edbdb3ae7ed5feec7a572.zip |
Remove additional unneeded tq method conversions
(cherry picked from commit c0f375feba0103bed2bac1b1f05e76e9ae28fa89)
Diffstat (limited to 'libkdegames/kchatbase.cpp')
-rw-r--r-- | libkdegames/kchatbase.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libkdegames/kchatbase.cpp b/libkdegames/kchatbase.cpp index a92f3846..4189c33f 100644 --- a/libkdegames/kchatbase.cpp +++ b/libkdegames/kchatbase.cpp @@ -73,14 +73,14 @@ void KChatBaseText::init() void KChatBaseText::setName(const TQString& n) { // d->mName = n; - d->mName = TQString("%1: ").tqarg(n); - setText(TQString("%1: %2").tqarg(name()).tqarg(message())); // esp. for sorting + d->mName = TQString("%1: ").arg(n); + setText(TQString("%1: %2").arg(name()).arg(message())); // esp. for sorting } void KChatBaseText::setMessage(const TQString& m) { d->mMessage = m; - setText(TQString("%1: %2").tqarg(name()).tqarg(message())); // esp. for sorting + setText(TQString("%1: %2").arg(name()).arg(message())); // esp. for sorting } const TQString& KChatBaseText::name() const @@ -368,7 +368,7 @@ TQListBoxItem* KChatBase::layoutMessage(const TQString& fromName, const TQString //TODO KChatBasePixmap? Should change the font here! - message = (TQListBoxItem*)new TQListBoxPixmap(pix, i18n("%1 %2").tqarg(fromName).tqarg(text.mid(3))); + message = (TQListBoxItem*)new TQListBoxPixmap(pix, i18n("%1 %2").arg(fromName).arg(text.mid(3))); } else { // the text is not edited in any way. just return an item KChatBaseText* m = new KChatBaseText(fromName, text); @@ -384,7 +384,7 @@ TQListBoxItem* KChatBase::layoutSystemMessage(const TQString& fromName, const TQ //TODO: KChatBaseConfigure? - e.g. color // no need to check for /me etc. - KChatBaseText* m = new KChatBaseText(i18n("--- %1").tqarg(fromName), text); + KChatBaseText* m = new KChatBaseText(i18n("--- %1").arg(fromName), text); m->setNameFont(&d->mSystemNameFont); m->setMessageFont(&d->mSystemMessageFont); return (TQListBoxItem*)m; @@ -406,7 +406,7 @@ void KChatBase::slotReturnPressed(const TQString& text) TQString KChatBase::comboBoxItem(const TQString& name) const { // TODO: such a function for "send to all" and "send to my group" - return i18n("Send to %1").tqarg(name); + return i18n("Send to %1").arg(name); } void KChatBase::slotClear() |