diff options
author | Andrew den Exter <andrew.den-exter@nokia.com> | 2012-04-19 11:08:28 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-04-27 06:27:46 +0200 |
commit | 2a6e105f43885e0901c252bffc77bd1c9db87b67 (patch) | |
tree | fbab5df14ceeb7e3a798cdbe4e5c6d5effff331d /src/quick/items/qquicktext_p.h | |
parent | 1770fa632facf2f1e4bb05e7689efc939d46cfef (diff) |
Fix bounding rects of text items.
Ensure the rectangles are correctly positioned with right
and center aligned text, not just sized correctly. Also add
padding to the clip rects so the cursor and styled text aren't
clipped at the item boundaries.
Change-Id: I03ef140589154ebd49b600b0a4c4fbeff845c10f
Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
Diffstat (limited to 'src/quick/items/qquicktext_p.h')
-rw-r--r-- | src/quick/items/qquicktext_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quick/items/qquicktext_p.h b/src/quick/items/qquicktext_p.h index e643d1dfb9..e69159eac9 100644 --- a/src/quick/items/qquicktext_p.h +++ b/src/quick/items/qquicktext_p.h @@ -197,6 +197,7 @@ public: qreal contentHeight() const; QRectF boundingRect() const; + QRectF clipRect() const; Q_INVOKABLE void doLayout(); Q_SIGNALS: |