diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
commit | c663b6440964f6ac48027143ac9e63298991f9d0 (patch) | |
tree | 6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /konsole/konsole/fontembedder.cpp | |
parent | a061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff) | |
download | tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'konsole/konsole/fontembedder.cpp')
-rw-r--r-- | konsole/konsole/fontembedder.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/konsole/konsole/fontembedder.cpp b/konsole/konsole/fontembedder.cpp index f2a189598..dfbd88ce4 100644 --- a/konsole/konsole/fontembedder.cpp +++ b/konsole/konsole/fontembedder.cpp @@ -18,15 +18,15 @@ 02110-1301 USA. */ -#include <qfile.h> -#include <qtextstream.h> +#include <tqfile.h> +#include <tqtextstream.h> #include <stdlib.h> #include <iostream> #include <iomanip> using namespace std; -static Q_UINT32 charVal(QChar val) +static Q_UINT32 charVal(TQChar val) { if (val == ' ') return 0; @@ -34,9 +34,9 @@ static Q_UINT32 charVal(QChar val) return 1; } -static Q_UINT32 readGlyphLine(QTextStream& input) +static Q_UINT32 readGlyphLine(TQTextStream& input) { - QString line = input.readLine(); + TQString line = input.readLine(); while (line.length() < 5) line += ' '; @@ -48,7 +48,7 @@ static Q_UINT32 readGlyphLine(QTextStream& input) return val; } -static Q_UINT32 readGlyph(QTextStream& input) +static Q_UINT32 readGlyph(TQTextStream& input) { return readGlyphLine(input) | (readGlyphLine(input) << 5) | @@ -64,13 +64,13 @@ int main(int argc, char **argv) qWarning("usage: fontembedder font.src > font.h"); exit(1); } - QFile inFile(argv[1]); + TQFile inFile(argv[1]); if (!inFile.open(IO_ReadOnly)) { qFatal("Can not open %s", argv[1]); } - QTextStream input(&inFile); + TQTextStream input(&inFile); Q_UINT32 glyphStates[128]; for (int i = 0; i < 128; ++i) @@ -78,7 +78,7 @@ int main(int argc, char **argv) while (!input.atEnd()) { - QString line = input.readLine(); + TQString line = input.readLine(); line = line.stripWhiteSpace(); if (line.isEmpty()) continue; //Skip empty lines |