diff options
author | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2011-05-02 08:06:44 (GMT) |
---|---|---|
committer | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2011-05-02 08:19:40 (GMT) |
commit | ac9e63b58533a3215106ed9da82cff3a3e3dda3a (patch) | |
tree | 5d9cda589cb4018ce825b6eba5673ffba35529be /src/gui/text/qrawfont.h | |
parent | 49d2906a9566c8b44df48f51ca137b9ba2feb671 (diff) | |
download | Qt-ac9e63b58533a3215106ed9da82cff3a3e3dda3a.zip Qt-ac9e63b58533a3215106ed9da82cff3a3e3dda3a.tar.gz Qt-ac9e63b58533a3215106ed9da82cff3a3e3dda3a.tar.bz2 |
Make pixel size a qreal in QRawFont
The pixel size in the font engines is already a floating point value.
For maximum flexibility, we should expose this in the public API.
Task-number: QTBUG-18817
Reviewed-by: Jiang Jiang
Diffstat (limited to 'src/gui/text/qrawfont.h')
-rw-r--r-- | src/gui/text/qrawfont.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/text/qrawfont.h b/src/gui/text/qrawfont.h index 96dc838..56aeefc 100644 --- a/src/gui/text/qrawfont.h +++ b/src/gui/text/qrawfont.h @@ -96,8 +96,8 @@ public: const QTransform &transform = QTransform()) const; QPainterPath pathForGlyph(quint32 glyphIndex) const; - void setPixelSize(int pixelSize); - int pixelSize() const; + void setPixelSize(qreal pixelSize); + qreal pixelSize() const; QFont::HintingPreference hintingPreference() const; |