diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-19 19:03:33 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-19 19:03:33 +0000 |
commit | e69e8b1d09fb579316595b4e6a850e717358a8b1 (patch) | |
tree | a24fc20865f65772f530d16177520190594ffdd2 /kdvi/fontMap.cpp | |
parent | eecec9afb81fdebb0f22e9da22635874c403f854 (diff) | |
download | tdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.tar.gz tdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.zip |
TQt4 port kdegraphics
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1237557 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdvi/fontMap.cpp')
-rw-r--r-- | kdvi/fontMap.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/kdvi/fontMap.cpp b/kdvi/fontMap.cpp index 66d230d7..b285018b 100644 --- a/kdvi/fontMap.cpp +++ b/kdvi/fontMap.cpp @@ -26,7 +26,7 @@ fontMap::fontMap() // has, like kdvi (and unlike dvips), no built-in fonts. // Finding ps2pk.map is not easy. In teTeX < 3.0, the kpsewhich - // program REQUIRES the option "--format=dvips config". In teTeX = + // program RETQUIRES the option "--format=dvips config". In teTeX = // 3.0, the option "--format=map" MUST be used. Since there is no // way to give both options at the same time, there is seemingly no // other way than to try both options one after another. We use the @@ -78,7 +78,7 @@ fontMap::fontMap() encodingName = encodingName.mid(1); double slant = 0.0; - int i = line.find("SlantFont"); + int i = line.tqfind("SlantFont"); if (i >= 0) { bool ok; slant = line.left(i).section(' ', -1, -1 ,TQString::SectionSkipEmpty).toDouble(&ok); @@ -94,11 +94,11 @@ fontMap::fontMap() if (encodingName.endsWith(".enc")) entry.fontEncoding = encodingName; else - entry.fontEncoding = TQString::null; + entry.fontEncoding = TQString(); } file.close(); } else - kdError(4300) << TQString("fontMap::fontMap(): The file '%1' could not be opened.").arg(map_fileName) << endl; + kdError(4300) << TQString("fontMap::fontMap(): The file '%1' could not be opened.").tqarg(map_fileName) << endl; #ifdef DEBUG_FONTMAP kdDebug(4300) << "FontMap file parsed. Results:" << endl; @@ -115,40 +115,40 @@ fontMap::fontMap() const TQString &fontMap::findFileName(const TQString &TeXName) { - TQMap<TQString, fontMapEntry>::Iterator it = fontMapEntries.find(TeXName); + TQMap<TQString, fontMapEntry>::Iterator it = fontMapEntries.tqfind(TeXName); if (it != fontMapEntries.end()) return it.data().fontFileName; else - return TQString::null; + return TQString(); } const TQString &fontMap::findFontName(const TQString &TeXName) { - TQMap<TQString, fontMapEntry>::Iterator it = fontMapEntries.find(TeXName); + TQMap<TQString, fontMapEntry>::Iterator it = fontMapEntries.tqfind(TeXName); if (it != fontMapEntries.end()) return it.data().fullFontName; else - return TQString::null; + return TQString(); } const TQString &fontMap::findEncoding(const TQString &TeXName) { - TQMap<TQString, fontMapEntry>::Iterator it = fontMapEntries.find(TeXName); + TQMap<TQString, fontMapEntry>::Iterator it = fontMapEntries.tqfind(TeXName); if (it != fontMapEntries.end()) return it.data().fontEncoding; else - return TQString::null; + return TQString(); } double fontMap::findSlant(const TQString &TeXName) { - TQMap<TQString, fontMapEntry>::Iterator it = fontMapEntries.find(TeXName); + TQMap<TQString, fontMapEntry>::Iterator it = fontMapEntries.tqfind(TeXName); if (it != fontMapEntries.end()) return it.data().slant; |