summaryrefslogtreecommitdiffstats
path: root/kdvi/fontMap.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
commiteba47f8f0637f451e21348187591e1f1fd58ac74 (patch)
tree448f10b95c656604acc331a3236c1e59bde5c1ad /kdvi/fontMap.cpp
parentc7e8736c69373f48b0401319757c742e8607431a (diff)
downloadtdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.tar.gz
tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.zip
TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdvi/fontMap.cpp')
-rw-r--r--kdvi/fontMap.cpp48
1 files changed, 24 insertions, 24 deletions
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 <kdebug.h>
#include <kprocio.h>
-#include <qfile.h>
+#include <tqfile.h>
#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<QString, fontMapEntry>::Iterator it;
+ TQMap<TQString, fontMapEntry>::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<QString, fontMapEntry>::Iterator it = fontMapEntries.find(TeXName);
+ TQMap<TQString, fontMapEntry>::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<QString, fontMapEntry>::Iterator it = fontMapEntries.find(TeXName);
+ TQMap<TQString, fontMapEntry>::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<QString, fontMapEntry>::Iterator it = fontMapEntries.find(TeXName);
+ TQMap<TQString, fontMapEntry>::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<QString, fontMapEntry>::Iterator it = fontMapEntries.find(TeXName);
+ TQMap<TQString, fontMapEntry>::Iterator it = fontMapEntries.find(TeXName);
if (it != fontMapEntries.end())
return it.data().slant;