diff options
author | Andreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com> | 2009-07-22 07:19:12 (GMT) |
---|---|---|
committer | Andreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com> | 2009-07-23 06:59:47 (GMT) |
commit | 3f630677d415d4a67938fa6cf64754c80aa30ba0 (patch) | |
tree | 9d521157a0022ac3eae3e05a8888b952c8421962 /src/gui/graphicsview/qgraphicsitem.h | |
parent | 708150e3a88fdc5f7c3d1998f2b5132cea264a71 (diff) | |
download | Qt-3f630677d415d4a67938fa6cf64754c80aa30ba0.zip Qt-3f630677d415d4a67938fa6cf64754c80aa30ba0.tar.gz Qt-3f630677d415d4a67938fa6cf64754c80aa30ba0.tar.bz2 |
Add QGraphicsItem::focusProxy(), focus proxy support.
Following QWidget's behavior, you can not assign any item in the
same scene as a focus proxy for another item. Also supports nested
focus proxies. You can only assign items in the same scene as
focus proxies. Autotests are included.
Reviewed-By: mbm
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 a307622..5c9297f 100644 --- a/src/gui/graphicsview/qgraphicsitem.h +++ b/src/gui/graphicsview/qgraphicsitem.h @@ -226,6 +226,9 @@ public: void setFocus(Qt::FocusReason focusReason = Qt::OtherFocusReason); void clearFocus(); + QGraphicsItem *focusProxy() const; + void setFocusProxy(QGraphicsItem *item); + void grabMouse(); void ungrabMouse(); void grabKeyboard(); |