diff options
author | Alexis Menard <alexis.menard@nokia.com> | 2010-03-31 04:28:59 (GMT) |
---|---|---|
committer | Alexis Menard <alexis.menard@nokia.com> | 2010-03-31 07:04:43 (GMT) |
commit | 93ae014d7ee06a6ebb701420fffef5895cd731c4 (patch) | |
tree | 4fb5872be0d96587a009cd1bf3d2da35df407c9c /src/gui/graphicsview/qgraphicsitem.h | |
parent | 525e6207b5e5c9cce82ed6e76a65571f56971f92 (diff) | |
download | Qt-93ae014d7ee06a6ebb701420fffef5895cd731c4.zip Qt-93ae014d7ee06a6ebb701420fffef5895cd731c4.tar.gz Qt-93ae014d7ee06a6ebb701420fffef5895cd731c4.tar.bz2 |
Add a QGraphicsItem::updateMicroFocus() to QGraphicsItem.
QGraphicsItem is no more lacking a way to notify the input method of a
changed micro focus.
Reviewed-by:denis
Reviewed-by:simon hausmann
Diffstat (limited to 'src/gui/graphicsview/qgraphicsitem.h')
-rw-r--r-- | src/gui/graphicsview/qgraphicsitem.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/graphicsview/qgraphicsitem.h b/src/gui/graphicsview/qgraphicsitem.h index 2c45b62..9cc75af 100644 --- a/src/gui/graphicsview/qgraphicsitem.h +++ b/src/gui/graphicsview/qgraphicsitem.h @@ -424,6 +424,7 @@ public: void removeSceneEventFilter(QGraphicsItem *filterItem); protected: + void updateMicroFocus(); virtual bool sceneEventFilter(QGraphicsItem *watched, QEvent *event); virtual bool sceneEvent(QEvent *event); virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent *event); @@ -571,6 +572,9 @@ public: void grabGesture(Qt::GestureType type, Qt::GestureFlags flags = Qt::GestureFlags()); void ungrabGesture(Qt::GestureType type); +protected Q_SLOTS: + void updateMicroFocus(); + Q_SIGNALS: void parentChanged(); void opacityChanged(); |