summaryrefslogtreecommitdiffstats
path: root/src/basketlistview.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commit33f08e93132a53bf14f41f5f1e567eeea832b336 (patch)
treef71204bc1c7d41a0545805a1276c5af43e1c3094 /src/basketlistview.cpp
parent14284db4dfa93999d6227344141e8663d9fcf7f9 (diff)
downloadbasket-33f08e93132a53bf14f41f5f1e567eeea832b336.tar.gz
basket-33f08e93132a53bf14f41f5f1e567eeea832b336.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/basket@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/basketlistview.cpp')
-rw-r--r--src/basketlistview.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/basketlistview.cpp b/src/basketlistview.cpp
index d118944..53a7e94 100644
--- a/src/basketlistview.cpp
+++ b/src/basketlistview.cpp
@@ -105,7 +105,7 @@ TQString BasketListViewItem::escapedName(const TQString &string)
{
// Underlining the Alt+Letter shortcut (and escape all other '&' characters), if any:
TQString basketName = string;
- basketName.tqreplace('&', "&&"); // First escape all the amperstamp
+ basketName.replace('&', "&&"); // First escape all the amperstamp
TQString letter; // Find the letter
TQString altKey = /*i18n(*/"Alt"/*)*/; //i18n("The [Alt] key, as shown in shortcuts like Alt+C...", "Alt");
TQString shiftKey = /*i18n(*/"Shift"/*)*/; //i18n("The [Shift] key, as shown in shortcuts like Alt+Shift+1...", "Shift");
@@ -116,7 +116,7 @@ TQString BasketListViewItem::escapedName(const TQString &string)
if (letter.isEmpty() && altShiftLetterExp.search(m_basket->shortcut().toStringInternal()) != -1)
letter = altShiftLetterExp.cap(1);
if (!letter.isEmpty()) {
- int index = basketName.tqfind(letter, /*index=*/0, /*caseSensitive=*/false);
+ int index = basketName.find(letter, /*index=*/0, /*caseSensitive=*/false);
if (index != -1)
basketName.insert(index, '&');
}
@@ -261,7 +261,7 @@ TQPixmap BasketListViewItem::circledTextPixmap(const TQString &text, int height,
{
TQString key = TQString("BLI-%1.%2.%3.%4")
.tqarg(text).tqarg(height).tqarg(font.toString()).tqarg(color.rgb());
- if (TQPixmap* cached=TQPixmapCache::tqfind(key)) {
+ if (TQPixmap* cached=TQPixmapCache::find(key)) {
return *cached;
}
@@ -467,7 +467,7 @@ void BasketListViewItem::paintCell(TQPainter *painter, const TQColorGroup &/*tqc
.tqarg(m_isUnderDrag)
.tqarg(m_basket->basketName())
.tqarg(m_basket->icon());
- if (TQPixmap* cached = TQPixmapCache::tqfind(key)) {
+ if (TQPixmap* cached = TQPixmapCache::find(key)) {
// TQt's documentation recommends copying the pointer
// into a TQPixmap immediately
TQPixmap cachedBuffer = *cached;
@@ -580,7 +580,7 @@ void BasketListViewItem::paintCell(TQPainter *painter, const TQColorGroup &/*tqc
effectiveWidth += countPixmap.width() + MARGIN;
}
if (showLoadingIcon) {
- TQPixmap icon = kapp->iconLoader()->loadIcon("tqfind", KIcon::NoGroup, 16, KIcon::DefaultState, 0L, /*canReturnNull=*/false);
+ TQPixmap icon = kapp->iconLoader()->loadIcon("find", KIcon::NoGroup, 16, KIcon::DefaultState, 0L, /*canReturnNull=*/false);
thePainter.drawPixmap(effectiveWidth, 0, icon);
effectiveWidth += BASKET_ICON_SIZE + MARGIN;
}