summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qfontdatabase_qpa.cpp
diff options
context:
space:
mode:
authorJiang Jiang <jiang.jiang@nokia.com>2011-07-06 09:50:58 (GMT)
committerJiang Jiang <jiang.jiang@nokia.com>2011-07-06 10:37:30 (GMT)
commitdd0205e0fbacf340508686cc136d70eda7bf664d (patch)
tree8b9a1ebdbf2f47081e54d75f76b85d0f24d517b9 /src/gui/text/qfontdatabase_qpa.cpp
parent83e93784a2da9e1898790e4455225da220f44d81 (diff)
downloadQt-dd0205e0fbacf340508686cc136d70eda7bf664d.zip
Qt-dd0205e0fbacf340508686cc136d70eda7bf664d.tar.gz
Qt-dd0205e0fbacf340508686cc136d70eda7bf664d.tar.bz2
Move styleName out of QtFontStyle::Key
Makes the code clearer and more explicit. Reviewed-by: Eskil
Diffstat (limited to 'src/gui/text/qfontdatabase_qpa.cpp')
-rw-r--r--src/gui/text/qfontdatabase_qpa.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/text/qfontdatabase_qpa.cpp b/src/gui/text/qfontdatabase_qpa.cpp
index fd5c6b4..6b6f4f1 100644
--- a/src/gui/text/qfontdatabase_qpa.cpp
+++ b/src/gui/text/qfontdatabase_qpa.cpp
@@ -73,7 +73,7 @@ Q_GUI_EXPORT void qt_registerFont(const QString &familyName, const QString &fou
}
QtFontFoundry *foundry = f->foundry(foundryname, true);
- QtFontStyle *fontStyle = foundry->style(styleKey, true);
+ QtFontStyle *fontStyle = foundry->style(styleKey, QString(), true);
fontStyle->smoothScalable = scalable;
fontStyle->antialiased = antialiased;
QtFontSize *size = fontStyle->pixelSize(pixelSize?pixelSize:SMOOTH_SCALABLE, true);