diff options
author | jasplin <qt-info@nokia.com> | 2009-08-04 13:44:45 (GMT) |
---|---|---|
committer | jasplin <qt-info@nokia.com> | 2009-08-04 13:56:03 (GMT) |
commit | b80a499764bf331880ff0c0d52670a419ec50feb (patch) | |
tree | 12d4e0967d35a9e2fb44f8258320ab148ef6542e /src/gui/graphicsview/qgraphicsitem.h | |
parent | 30e3a39ca2e5e1204cc123dce2f2921d8fda620d (diff) | |
download | Qt-b80a499764bf331880ff0c0d52670a419ec50feb.zip Qt-b80a499764bf331880ff0c0d52670a419ec50feb.tar.gz Qt-b80a499764bf331880ff0c0d52670a419ec50feb.tar.bz2 |
Added input hints to QGraphicsItem.
This patch allows for input hints to be set on a QGraphicsItem.
Input methods use such hints to define its appearance/behavior
(e.g. to allow for numerical input only).
Reviewed-by: ahanssen
Task-number: 254493
Diffstat (limited to 'src/gui/graphicsview/qgraphicsitem.h')
-rw-r--r-- | src/gui/graphicsview/qgraphicsitem.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/graphicsview/qgraphicsitem.h b/src/gui/graphicsview/qgraphicsitem.h index b94fb97..f142b0f 100644 --- a/src/gui/graphicsview/qgraphicsitem.h +++ b/src/gui/graphicsview/qgraphicsitem.h @@ -375,6 +375,9 @@ public: QVariant data(int key) const; void setData(int key, const QVariant &value); + Qt::InputMethodHints inputMethodHints() const; + void setInputMethodHints(Qt::InputMethodHints hints); + enum { Type = 1, UserType = 65536 |