summaryrefslogtreecommitdiffstats
path: root/kdeui/kfontcombo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdeui/kfontcombo.cpp')
-rw-r--r--kdeui/kfontcombo.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/kdeui/kfontcombo.cpp b/kdeui/kfontcombo.cpp
index cd4c92b43..c664d226e 100644
--- a/kdeui/kfontcombo.cpp
+++ b/kdeui/kfontcombo.cpp
@@ -132,7 +132,7 @@ void KFontListItem::paint(TQPainter *p)
if (m_canPaintName)
p->setFont(*m_font);
else
- t = TQString::tqfromLatin1("(%1)").arg(m_fontName);
+ t = TQString::fromLatin1("(%1)").arg(m_fontName);
}
TQFontMetrics fm(p->fontMetrics());
p->drawText(3, (m_combo->d->lineSpacing + fm.ascent() + fm.leading() / 2) / 2, t);
@@ -212,7 +212,7 @@ void KFontCombo::setCurrentFont(const TQString &family)
return;
}
}
- int x = lowerName.tqfind(" [");
+ int x = lowerName.find(" [");
if (x>-1)
{
lowerName = lowerName.left(x);
@@ -251,7 +251,7 @@ void KFontCombo::setCurrentFont(const TQString &family)
FcConfigSubstitute (config, pattern, FcMatchPattern);
pattern = FcFontMatch(NULL, pattern, NULL);
realFamily = (char*)FcNameUnparse(pattern);
- realFamily.remove(realFamily.tqfind(regExp), realFamily.length());
+ realFamily.remove(realFamily.find(regExp), realFamily.length());
if ( !realFamily.isEmpty() && realFamily != family )
setCurrentFont( realFamily );