summaryrefslogtreecommitdiffstats
path: root/kcontrol/kfontinst/kfontinst/FontEngine.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
commitc663b6440964f6ac48027143ac9e63298991f9d0 (patch)
tree6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /kcontrol/kfontinst/kfontinst/FontEngine.cpp
parenta061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff)
downloadtdebase-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 'kcontrol/kfontinst/kfontinst/FontEngine.cpp')
-rw-r--r--kcontrol/kfontinst/kfontinst/FontEngine.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/kcontrol/kfontinst/kfontinst/FontEngine.cpp b/kcontrol/kfontinst/kfontinst/FontEngine.cpp
index ff5dcd623..4fe823c23 100644
--- a/kcontrol/kfontinst/kfontinst/FontEngine.cpp
+++ b/kcontrol/kfontinst/kfontinst/FontEngine.cpp
@@ -35,8 +35,8 @@
#include <stdlib.h>
#include <iostream>
#include <stdio.h>
-#include <qregexp.h>
-#include <qfile.h>
+#include <tqregexp.h>
+#include <tqfile.h>
#include <ft2build.h>
#include FT_SFNT_NAMES_H
#include FT_TRUETYPE_IDS_H
@@ -46,7 +46,7 @@
namespace KFI
{
-bool CFontEngine::openFont(const QString &file, int face)
+bool CFontEngine::openFont(const TQString &file, int face)
{
bool ok=false;
@@ -62,7 +62,7 @@ bool CFontEngine::openFont(const QString &file, int face)
itsItalic=ITALIC_NONE;
itsPath=file;
itsFaceIndex=face;
- itsPsName=QString();
+ itsPsName=TQString();
if(!openFontFt(file) && !itsPsName.isEmpty())
itsType=NONE;
@@ -74,12 +74,12 @@ bool CFontEngine::openFont(const QString &file, int face)
void CFontEngine::closeFont()
{
closeFaceFt();
- itsPath=QString::null;
+ itsPath=TQString::null;
itsFaceIndex=-1;
itsType=NONE;
}
-QString CFontEngine::weightStr(enum EWeight w)
+TQString CFontEngine::weightStr(enum EWeight w)
{
switch(w)
{
@@ -155,12 +155,12 @@ CFontEngine::EWeight CFontEngine::strToWeight(const char *str)
return WEIGHT_MEDIUM; // WEIGHT_UNKNOWN;
}
-static void removeSymbols(QString &str)
+static void removeSymbols(TQString &str)
{
- str.replace(QRegExp("[\\-\\[\\]()]"), " ");
+ str.replace(TQRegExp("[\\-\\[\\]()]"), " ");
int len=str.length();
- QChar space(' ');
+ TQChar space(' ');
for(int c=0; c<len; ++c)
if(str[c].unicode()<0x20 || str[c].unicode()>0x7E)
@@ -210,10 +210,10 @@ static bool lookupName(FT_Face face, int nid, int pid, int eid, FT_SfntName *nam
return false;
}
-static QCString getName(FT_Face face, int nid)
+static TQCString getName(FT_Face face, int nid)
{
FT_SfntName name;
- QCString str;
+ TQCString str;
if(lookupName(face, nid, TT_PLATFORM_MICROSOFT, TT_MS_ID_UNICODE_CS, &name) ||
lookupName(face, nid, TT_PLATFORM_APPLE_UNICODE, -1, &name))
@@ -226,7 +226,7 @@ static QCString getName(FT_Face face, int nid)
return str;
}
-bool CFontEngine::openFontFt(const QString &file)
+bool CFontEngine::openFontFt(const TQString &file)
{
enum ETtfWeight
{
@@ -242,7 +242,7 @@ bool CFontEngine::openFontFt(const QString &file)
TTF_WEIGHT_BLACK = 900 +50
};
- bool status=FT_New_Face(itsFt.library, QFile::encodeName(file), 0, &itsFt.face) ? false : true;
+ bool status=FT_New_Face(itsFt.library, TQFile::encodeName(file), 0, &itsFt.face) ? false : true;
if(status)
itsFt.open=true;