diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:39:55 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:39:55 +0000 |
commit | 0a6e0958c03e41c87b15557b6f407874f20c2f8d (patch) | |
tree | 2cdd58c4013b1be09cfcbb4ddae2b05712b9aeee /blinken/src/fontutils.cpp | |
parent | 83f9dfafc157ff7823804b3ff457b43d021a5b4b (diff) | |
download | tdeedu-0a6e0958c03e41c87b15557b6f407874f20c2f8d.tar.gz tdeedu-0a6e0958c03e41c87b15557b6f407874f20c2f8d.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1157642 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'blinken/src/fontutils.cpp')
-rw-r--r-- | blinken/src/fontutils.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/blinken/src/fontutils.cpp b/blinken/src/fontutils.cpp index eacbbd46..10d3bc0d 100644 --- a/blinken/src/fontutils.cpp +++ b/blinken/src/fontutils.cpp @@ -7,24 +7,24 @@ * (at your option) any later version. * ***************************************************************************/ -#include <qpainter.h> +#include <tqpainter.h> #include "fontutils.h" -int fontUtils::fontSize(QPainter &p, const QString &s1, int w, int h) +int fontUtils::fontSize(TQPainter &p, const TQString &s1, int w, int h) { int size; - QRect aux1; + TQRect aux1; bool done = false; size = 28; while (!done) { - QFont f = p.font(); + TQFont f = p.font(); f.setPointSize(size); p.setFont(f); - aux1 = p.boundingRect(QRect(), Qt::AlignAuto, s1); + aux1 = p.boundingRect(TQRect(), Qt::AlignAuto, s1); if (aux1.width() > w || aux1.height() > h) size = QMIN(w * size / aux1.width(), h * size / aux1.height()); else done = true; } |