From eba47f8f0637f451e21348187591e1f1fd58ac74 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 2 Aug 2010 19:23:46 +0000 Subject: TQt conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdvi/fontMap.cpp | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'kdvi/fontMap.cpp') diff --git a/kdvi/fontMap.cpp b/kdvi/fontMap.cpp index cf5fa841..66d230d7 100644 --- a/kdvi/fontMap.cpp +++ b/kdvi/fontMap.cpp @@ -10,7 +10,7 @@ #include #include -#include +#include #include "fontMap.h" @@ -38,7 +38,7 @@ fontMap::fontMap() return; } - QString map_fileName; + TQString map_fileName; proc.readln(map_fileName); map_fileName = map_fileName.stripWhiteSpace(); if (map_fileName.isEmpty()) { @@ -59,19 +59,19 @@ fontMap::fontMap() } } - QFile file( map_fileName ); + TQFile file( map_fileName ); if ( file.open( IO_ReadOnly ) ) { - QTextStream stream( &file ); - QString line; + TQTextStream stream( &file ); + TQString line; while ( !stream.atEnd() ) { line = stream.readLine().simplifyWhiteSpace(); if (line.at(0) == '%') continue; - QString TeXName = line.section(' ', 0, 0); - QString FullName = line.section(' ', 1, 1); - QString fontFileName = line.section('<', -1).stripWhiteSpace().section(' ', 0, 0); - QString encodingName = line.section('<', -2, -2).stripWhiteSpace().section(' ', 0, 0); + TQString TeXName = line.section(' ', 0, 0); + TQString FullName = line.section(' ', 1, 1); + TQString fontFileName = line.section('<', -1).stripWhiteSpace().section(' ', 0, 0); + TQString encodingName = line.section('<', -2, -2).stripWhiteSpace().section(' ', 0, 0); // It seems that sometimes the encoding is prepended by the // letter '[', which we ignore if ((!encodingName.isEmpty()) && (encodingName[0] == '[')) @@ -81,7 +81,7 @@ fontMap::fontMap() int i = line.find("SlantFont"); if (i >= 0) { bool ok; - slant = line.left(i).section(' ', -1, -1 ,QString::SectionSkipEmpty).toDouble(&ok); + slant = line.left(i).section(' ', -1, -1 ,TQString::SectionSkipEmpty).toDouble(&ok); if (ok == false) slant = 0.0; } @@ -94,15 +94,15 @@ fontMap::fontMap() if (encodingName.endsWith(".enc")) entry.fontEncoding = encodingName; else - entry.fontEncoding = QString::null; + entry.fontEncoding = TQString::null; } file.close(); } else - kdError(4300) << QString("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.").arg(map_fileName) << endl; #ifdef DEBUG_FONTMAP kdDebug(4300) << "FontMap file parsed. Results:" << endl; - QMap::Iterator it; + TQMap::Iterator it; for ( it = fontMapEntries.begin(); it != fontMapEntries.end(); ++it ) kdDebug(4300) << "TeXName: " << it.key() << ", FontFileName=" << it.data().fontFileName @@ -113,42 +113,42 @@ fontMap::fontMap() } -const QString &fontMap::findFileName(const QString &TeXName) +const TQString &fontMap::findFileName(const TQString &TeXName) { - QMap::Iterator it = fontMapEntries.find(TeXName); + TQMap::Iterator it = fontMapEntries.find(TeXName); if (it != fontMapEntries.end()) return it.data().fontFileName; else - return QString::null; + return TQString::null; } -const QString &fontMap::findFontName(const QString &TeXName) +const TQString &fontMap::findFontName(const TQString &TeXName) { - QMap::Iterator it = fontMapEntries.find(TeXName); + TQMap::Iterator it = fontMapEntries.find(TeXName); if (it != fontMapEntries.end()) return it.data().fullFontName; else - return QString::null; + return TQString::null; } -const QString &fontMap::findEncoding(const QString &TeXName) +const TQString &fontMap::findEncoding(const TQString &TeXName) { - QMap::Iterator it = fontMapEntries.find(TeXName); + TQMap::Iterator it = fontMapEntries.find(TeXName); if (it != fontMapEntries.end()) return it.data().fontEncoding; else - return QString::null; + return TQString::null; } -double fontMap::findSlant(const QString &TeXName) +double fontMap::findSlant(const TQString &TeXName) { - QMap::Iterator it = fontMapEntries.find(TeXName); + TQMap::Iterator it = fontMapEntries.find(TeXName); if (it != fontMapEntries.end()) return it.data().slant; -- cgit v1.2.3