summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/fontdatabases/basicunix/qbasicunixfontdatabase.cpp
diff options
context:
space:
mode:
authorShane Kearns <shane.kearns@accenture.com>2011-03-08 16:04:05 (GMT)
committerShane Kearns <shane.kearns@accenture.com>2011-03-08 16:04:05 (GMT)
commitb6cc353adb0613ce41153181b4f08bb81b7acf68 (patch)
tree1c25cc922c513f8666470695a0d63b8a19e223a4 /src/plugins/platforms/fontdatabases/basicunix/qbasicunixfontdatabase.cpp
parent5ef1fb5823a25cd4b27029701f7d707c82750acb (diff)
parent206b614f2e9623d792e6f398bf11765a44c272f5 (diff)
downloadQt-b6cc353adb0613ce41153181b4f08bb81b7acf68.zip
Qt-b6cc353adb0613ce41153181b4f08bb81b7acf68.tar.gz
Qt-b6cc353adb0613ce41153181b4f08bb81b7acf68.tar.bz2
Merge remote branch 'earth/master' into symbian-socket-engine
Conflicts: src/corelib/kernel/qcore_symbian_p.h src/network/kernel/qnetworkinterface_symbian.cpp
Diffstat (limited to 'src/plugins/platforms/fontdatabases/basicunix/qbasicunixfontdatabase.cpp')
-rw-r--r--src/plugins/platforms/fontdatabases/basicunix/qbasicunixfontdatabase.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/platforms/fontdatabases/basicunix/qbasicunixfontdatabase.cpp b/src/plugins/platforms/fontdatabases/basicunix/qbasicunixfontdatabase.cpp
index 4634477..ee520be 100644
--- a/src/plugins/platforms/fontdatabases/basicunix/qbasicunixfontdatabase.cpp
+++ b/src/plugins/platforms/fontdatabases/basicunix/qbasicunixfontdatabase.cpp
@@ -278,7 +278,7 @@ QStringList QBasicUnixFontDatabase::addTTFile(const QByteArray &fontData, const
}
numFaces = face->num_faces;
- int weight = QFont::Normal;
+ QFont::Weight weight = QFont::Normal;
QFont::Style style = QFont::StyleNormal;
if (face->style_flags & FT_STYLE_FLAG_ITALIC)
@@ -315,7 +315,9 @@ QStringList QBasicUnixFontDatabase::addTTFile(const QByteArray &fontData, const
fontFile->fileName = file;
fontFile->indexValue = index;
- registerFont(family,"",weight,style,100,true,true,0,writingSystems,fontFile);
+ QFont::Stretch stretch = QFont::Unstretched;
+
+ registerFont(family,"",weight,style,stretch,true,true,0,writingSystems,fontFile);
families.append(family);