From eb63c0fa4761fa5a8505a594ea5fd861af474533 Mon Sep 17 00:00:00 2001 From: Jan Arve Saether Date: Tue, 19 Apr 2016 14:00:40 +0200 Subject: Add ImInputItemClipRectangle This rectangle represents the "effective" visual rectangle of the input item, excluding any areas obscured due to clipping. Note: The effective visual rectangle will not be influenced by overlapping items. Change-Id: I234176161dcfb9c236124e33ae510a0b01fe6dc3 Reviewed-by: Richard Moe Gustavsen --- src/corelib/global/qnamespace.h | 1 + src/corelib/global/qnamespace.qdoc | 3 +++ 2 files changed, 4 insertions(+) (limited to 'src/corelib') diff --git a/src/corelib/global/qnamespace.h b/src/corelib/global/qnamespace.h index 5a4f499a87..c73ceb9503 100644 --- a/src/corelib/global/qnamespace.h +++ b/src/corelib/global/qnamespace.h @@ -1340,6 +1340,7 @@ public: ImTextAfterCursor = 0x1000, ImEnterKeyType = 0x2000, ImAnchorRectangle = 0x4000, + ImInputItemClipRectangle = 0x8000, ImPlatformData = 0x80000000, ImQueryInput = ImCursorRectangle | ImCursorPosition | ImSurroundingText | diff --git a/src/corelib/global/qnamespace.qdoc b/src/corelib/global/qnamespace.qdoc index 0cc9467921..60ce1fc916 100644 --- a/src/corelib/global/qnamespace.qdoc +++ b/src/corelib/global/qnamespace.qdoc @@ -2583,6 +2583,9 @@ \value ImEnterKeyType The Enter key type. \value ImAnchorRectangle The bounding rectangle of the selection anchor. This value has been added in Qt 5.7. + \value ImInputItemClipRectangle The actual exposed input item rectangle. Parts of the input item might be + clipped. This value will take clipping into consideration and return the actual painted + item rectangle. The rectangle is in widget coordinates. Masks: -- cgit v1.2.3