diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-11 04:44:41 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-11 04:44:41 +0000 |
commit | a374efce3a207b39514be3c52264091400ce297e (patch) | |
tree | 77bdf654b55826d4f59b53a5621310206bcaead1 /kanagram/src/fontutils.cpp | |
parent | f81a494f3957d5cf38c787973415597941934727 (diff) | |
download | tdeedu-a374efce3a207b39514be3c52264091400ce297e.tar.gz tdeedu-a374efce3a207b39514be3c52264091400ce297e.zip |
TQt4 port kdeedu
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1236073 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kanagram/src/fontutils.cpp')
-rw-r--r-- | kanagram/src/fontutils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kanagram/src/fontutils.cpp b/kanagram/src/fontutils.cpp index 14fff456..5b3dfdca 100644 --- a/kanagram/src/fontutils.cpp +++ b/kanagram/src/fontutils.cpp @@ -18,7 +18,7 @@ int fontUtils::fontSize(TQPainter &p, const TQString &s1, int w, int h) f.setPointSize(28); p.setFont(f); - aux1 = p.boundingRect(TQRect(), Qt::AlignAuto, s1); + aux1 = p.boundingRect(TQRect(), TQt::AlignAuto, s1); - return QMIN(w * 28 / aux1.width(), h * 28 / aux1.height()); + return TQMIN(w * 28 / aux1.width(), h * 28 / aux1.height()); } |