From 24c5cdc2737fe0044b11a12359606973eb93fc0b Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 10 Aug 2011 06:08:18 +0000 Subject: rename the following methods: tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- libkdegames/kchatbase.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libkdegames/kchatbase.cpp') diff --git a/libkdegames/kchatbase.cpp b/libkdegames/kchatbase.cpp index 00827e6d..4f0c9931 100644 --- a/libkdegames/kchatbase.cpp +++ b/libkdegames/kchatbase.cpp @@ -262,7 +262,7 @@ bool KChatBase::insertSendingEntry(const TQString& text, int id, int index) kdWarning(11000) << "KChatBase: Cannot add an entry to the combo box" << endl; return false; } - if (d->mIndex2Id.tqfindIndex(id) != -1) { + if (d->mIndex2Id.findIndex(id) != -1) { kdError(11000) << "KChatBase: Cannot add more than one entry with the same ID! " << endl; kdError(11000) << "KChatBase: Text="<mIndex2Id.tqfindIndex(id); + return d->mIndex2Id.findIndex(id); } int KChatBase::nextId() const { int i = SendToAll + 1; - while (d->mIndex2Id.tqfindIndex(i) != -1) { + while (d->mIndex2Id.findIndex(i) != -1) { i++; } return i; @@ -362,7 +362,7 @@ TQListBoxItem* KChatBase::layoutMessage(const TQString& fromName, const TQString //TODO: KChatBaseConfigure? - e.g. color TQListBoxItem* message; if (text.startsWith("/me ")) { - // tqreplace "/me" by a nice star. leave one space after the star + // replace "/me" by a nice star. leave one space after the star TQPixmap pix; pix.load(locate("data", TQString::tqfromLatin1("kdegames/pics/star.png"))); -- cgit v1.2.1