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/qquicktextedit_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/qquicktextedit_p.h')
-rw-r--r-- | src/quick/items/qquicktextedit_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quick/items/qquicktextedit_p.h b/src/quick/items/qquicktextedit_p.h index b28ec9d7d7..9f904cae67 100644 --- a/src/quick/items/qquicktextedit_p.h +++ b/src/quick/items/qquicktextedit_p.h @@ -229,6 +229,7 @@ public: Q_INVOKABLE void moveCursorSelection(int pos, SelectionMode mode); QRectF boundingRect() const; + QRectF clipRect() const; bool isInputMethodComposing() const; |