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/qquicktextinput_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/qquicktextinput_p.h')
-rw-r--r-- | src/quick/items/qquicktextinput_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quick/items/qquicktextinput_p.h b/src/quick/items/qquicktextinput_p.h index 9d32eeec60..9a3be0f116 100644 --- a/src/quick/items/qquicktextinput_p.h +++ b/src/quick/items/qquicktextinput_p.h @@ -245,6 +245,8 @@ public: QVariant inputMethodQuery(Qt::InputMethodQuery property) const; QRectF boundingRect() const; + QRectF clipRect() const; + #ifndef QT_NO_CLIPBOARD bool canPaste() const; #endif |