diff options
author | Jiang Jiang <jiang.jiang@nokia.com> | 2011-07-21 13:09:24 (GMT) |
---|---|---|
committer | Jiang Jiang <jiang.jiang@nokia.com> | 2011-07-21 13:14:58 (GMT) |
commit | 500f8a4368be85a0ae8b7c46012deb0ab0c844ad (patch) | |
tree | b81d7a3e13c494b0681c0dba7a831095b7850d82 /src/gui/text/qrawfont.cpp | |
parent | 89fb49ab13949d5ed1fb8bf0d306d9f1b2c38a71 (diff) | |
download | Qt-500f8a4368be85a0ae8b7c46012deb0ab0c844ad.zip Qt-500f8a4368be85a0ae8b7c46012deb0ab0c844ad.tar.gz Qt-500f8a4368be85a0ae8b7c46012deb0ab0c844ad.tar.bz2 |
Switch to use floating point pixelSize in QRawFont completely
Reviewed-by: Eskil
Diffstat (limited to 'src/gui/text/qrawfont.cpp')
-rw-r--r-- | src/gui/text/qrawfont.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/text/qrawfont.cpp b/src/gui/text/qrawfont.cpp index ec5cc18..2c60b14 100644 --- a/src/gui/text/qrawfont.cpp +++ b/src/gui/text/qrawfont.cpp @@ -139,7 +139,7 @@ QRawFont::QRawFont() \note The referenced file must contain a TrueType or OpenType font. */ QRawFont::QRawFont(const QString &fileName, - int pixelSize, + qreal pixelSize, QFont::HintingPreference hintingPreference) : d(new QRawFontPrivate) { @@ -154,7 +154,7 @@ QRawFont::QRawFont(const QString &fileName, \note The data must contain a TrueType or OpenType font. */ QRawFont::QRawFont(const QByteArray &fontData, - int pixelSize, + qreal pixelSize, QFont::HintingPreference hintingPreference) : d(new QRawFontPrivate) { @@ -204,7 +204,7 @@ bool QRawFont::isValid() const \sa loadFromData() */ void QRawFont::loadFromFile(const QString &fileName, - int pixelSize, + qreal pixelSize, QFont::HintingPreference hintingPreference) { QFile file(fileName); @@ -222,7 +222,7 @@ void QRawFont::loadFromFile(const QString &fileName, \sa loadFromFile() */ void QRawFont::loadFromData(const QByteArray &fontData, - int pixelSize, + qreal pixelSize, QFont::HintingPreference hintingPreference) { detach(); |