summaryrefslogtreecommitdiffstats
path: root/src/basketlistview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/basketlistview.cpp')
-rw-r--r--src/basketlistview.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/basketlistview.cpp b/src/basketlistview.cpp
index 1ec5cd5..a963f8f 100644
--- a/src/basketlistview.cpp
+++ b/src/basketlistview.cpp
@@ -109,8 +109,8 @@ TQString BasketListViewItem::escapedName(const TQString &string)
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");
- TQRegExp altLetterExp( TQString("^%1\\+(.)$").tqarg(altKey) );
- TQRegExp altShiftLetterExp( TQString("^%1\\+%2\\+(.)$").tqarg(altKey, shiftKey) );
+ TQRegExp altLetterExp( TQString("^%1\\+(.)$").arg(altKey) );
+ TQRegExp altShiftLetterExp( TQString("^%1\\+%2\\+(.)$").arg(altKey, shiftKey) );
if (altLetterExp.search(m_basket->shortcut().toStringInternal()) != -1)
letter = altLetterExp.cap(1);
if (letter.isEmpty() && altShiftLetterExp.search(m_basket->shortcut().toStringInternal()) != -1)
@@ -140,7 +140,7 @@ void BasketListViewItem::setup()
setPixmap(/*column=*/0, icon);
- tqrepaint();
+ repaint();
}
BasketListViewItem* BasketListViewItem::lastChild()
@@ -260,7 +260,7 @@ extern void drawGradient( TQPainter *p, const TQColor &colorTop, const TQColor &
TQPixmap BasketListViewItem::circledTextPixmap(const TQString &text, int height, const TQFont &font, const TQColor &color)
{
TQString key = TQString("BLI-%1.%2.%3.%4")
- .tqarg(text).tqarg(height).tqarg(font.toString()).tqarg(color.rgb());
+ .arg(text).arg(height).arg(font.toString()).arg(color.rgb());
if (TQPixmap* cached=TQPixmapCache::find(key)) {
return *cached;
}
@@ -335,12 +335,12 @@ TQPixmap BasketListViewItem::foundCountPixmap(bool isLoading, int countFound, bo
TQString text;
if (childsAreLoading) {
if (countChildsFound > 0)
- text = i18n("%1+%2+").tqarg(TQString::number(countFound), TQString::number(countChildsFound));
+ text = i18n("%1+%2+").arg(TQString::number(countFound), TQString::number(countChildsFound));
else
- text = i18n("%1+").tqarg(TQString::number(countFound));
+ text = i18n("%1+").arg(TQString::number(countFound));
} else {
if (countChildsFound > 0)
- text = i18n("%1+%2").tqarg(TQString::number(countFound), TQString::number(countChildsFound));
+ text = i18n("%1+%2").arg(TQString::number(countFound), TQString::number(countChildsFound));
else if (countFound > 0)
text = TQString::number(countFound);
else
@@ -452,21 +452,21 @@ void BasketListViewItem::paintCell(TQPainter *painter, const TQColorGroup &/*col
// Don't forget to update the key computation if parameters
// affecting the rendering logic change
TQString key = TQString("BLVI::pC-%1.%2.%3.%4.%5.%6.%7.%8.%9.%10.%11.%12.%13.%14.%15")
- .tqarg(effectiveWidth)
- .tqarg(drawRoundRect)
- .tqarg(textColor.rgb())
- .tqarg(m_basket->backgroundColor().rgb())
- .tqarg(isCurrentBasket())
- .tqarg(shownBelow && shownBelow->isCurrentBasket())
- .tqarg(shownAbove && shownAbove->isCurrentBasket())
- .tqarg(showLoadingIcon)
- .tqarg(showEncryptedIcon)
- .tqarg(showCountPixmap)
- .tqarg(m_basket->countFounds())
- .tqarg(countHiddenChildsFound())
- .tqarg(m_isUnderDrag)
- .tqarg(m_basket->basketName())
- .tqarg(m_basket->icon());
+ .arg(effectiveWidth)
+ .arg(drawRoundRect)
+ .arg(textColor.rgb())
+ .arg(m_basket->backgroundColor().rgb())
+ .arg(isCurrentBasket())
+ .arg(shownBelow && shownBelow->isCurrentBasket())
+ .arg(shownAbove && shownAbove->isCurrentBasket())
+ .arg(showLoadingIcon)
+ .arg(showEncryptedIcon)
+ .arg(showCountPixmap)
+ .arg(m_basket->countFounds())
+ .arg(countHiddenChildsFound())
+ .arg(m_isUnderDrag)
+ .arg(m_basket->basketName())
+ .arg(m_basket->icon());
if (TQPixmap* cached = TQPixmapCache::find(key)) {
// TQt's documentation recommends copying the pointer
// into a TQPixmap immediately