summaryrefslogtreecommitdiffstats
path: root/arts/builder/drawutils.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
commite654398e46e37abf457b2b1122ab898d2c51c49f (patch)
treed39ee6440f3c3663c3ead84a2d4cc2d034667e96 /arts/builder/drawutils.cpp
parente4f29b18e19394b9352f52a6c0d0d0e3932cf511 (diff)
downloadtdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.tar.gz
tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1157644 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'arts/builder/drawutils.cpp')
-rw-r--r--arts/builder/drawutils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/arts/builder/drawutils.cpp b/arts/builder/drawutils.cpp
index 43b449e8..c2c0ef3f 100644
--- a/arts/builder/drawutils.cpp
+++ b/arts/builder/drawutils.cpp
@@ -21,9 +21,9 @@
#include "drawutils.h"
-QString DrawUtils::cropText(QPainter *p, QString text, int maxlen, int& textwidth)
+TQString DrawUtils::cropText(TQPainter *p, TQString text, int maxlen, int& textwidth)
{
- QString label = text;
+ TQString label = text;
while(p->fontMetrics().width(label) > maxlen && label.length() > 0) {
int i = label.find('_');