diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-03 04:12:51 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-03 04:12:51 +0000 |
commit | 560378aaca1784ba19806a0414a32b20c744de39 (patch) | |
tree | ce0dfd7c3febf2a1adc7603d1019a8be2083c415 /khtml/test_regression_fontoverload.cpp | |
parent | d4d5af1cdbd3cc65d095e0afc5b1f4260091cf5d (diff) | |
download | tdelibs-560378aaca1784ba19806a0414a32b20c744de39.tar.gz tdelibs-560378aaca1784ba19806a0414a32b20c744de39.zip |
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
NOTE: This will not compile with Qt4 (yet), however it does compile with Qt3
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1211081 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'khtml/test_regression_fontoverload.cpp')
-rw-r--r-- | khtml/test_regression_fontoverload.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/khtml/test_regression_fontoverload.cpp b/khtml/test_regression_fontoverload.cpp index a10146480..5bbd05d31 100644 --- a/khtml/test_regression_fontoverload.cpp +++ b/khtml/test_regression_fontoverload.cpp @@ -98,7 +98,7 @@ QFakeFontEngine::QFakeFontEngine( XFontStruct *fs, const char *name, int size ) : QFontEngineXLFD( fs, name, 0) { pixS = size; - ahem = TQString::fromLatin1(name).contains("ahem"); + ahem = TQString::tqfromLatin1(name).tqcontains("ahem"); } QFakeFontEngine::~QFakeFontEngine() @@ -152,7 +152,7 @@ int QFakeFontEngine::leading() const // the original uses double and creates quite random results depending // on the compiler flags int l = ( _size * 15 + 50) / 100; - // only valid on i386 without -O2 assert(l == int(qRound(_size * 0.15))); + // only valid on i386 without -O2 assert(l == int(tqRound(_size * 0.15))); return (l > 0) ? l : 1; } @@ -207,7 +207,7 @@ static TQString helv_pickxlfd( int pixelsize, bool italic, bool bold ) } KDE_EXPORT QFontEngine * -TQFontDatabase::findFont( TQFont::Script script, const QFontPrivate *fp, +TQFontDatabase::tqfindFont( TQFont::Script script, const QFontPrivate *fp, const QFontDef &request, int ) { TQString xlfd; @@ -361,7 +361,7 @@ void KApplication::dcopFailure( const TQString & ) #include <kparts/historyprovider.h> -bool KParts::HistoryProvider::contains( const TQString& t ) const +bool KParts::HistoryProvider::tqcontains( const TQString& t ) const { return ( t == "http://www.kde.org/" || t == "http://www.google.com/"); } |