summaryrefslogtreecommitdiffstats
path: root/src/widgets/graphicsview/qgraphicsscene.h
diff options
context:
space:
mode:
authorAndreas Aardal Hanssen <andreas@hanssen.name>2012-11-29 22:33:43 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-12-17 19:37:16 +0100
commitaf8a6cdd87c27b4ed18d5e6238757ba8885f630d (patch)
tree4acd0898cd2a69fed9f37256ee1c8fea5f03abd7 /src/widgets/graphicsview/qgraphicsscene.h
parent2dc6ad8adf7f98d55aca5def8ee3f9c12934fb7b (diff)
Add new signal: QGraphicsScene::focusItemChanged().
This signal is emitted by QGraphicsScene whenever focus changes in the scene (i.e., when an item gains or loses input focus, or when focus passes from one item to another). You can connect to this signal if you need to keep track of when other items gain input focus. It is particularily useful for implementing virtual keyboards, input methods, and cursor items. Task-number: QTBUG-10570 Change-Id: I9cbbd9a2d15d6f568e1597c2c33ec049eb70f793 Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com> Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
Diffstat (limited to 'src/widgets/graphicsview/qgraphicsscene.h')
-rw-r--r--src/widgets/graphicsview/qgraphicsscene.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/widgets/graphicsview/qgraphicsscene.h b/src/widgets/graphicsview/qgraphicsscene.h
index 27337d3a2a..3f00b74f53 100644
--- a/src/widgets/graphicsview/qgraphicsscene.h
+++ b/src/widgets/graphicsview/qgraphicsscene.h
@@ -292,6 +292,7 @@ Q_SIGNALS:
void changed(const QList<QRectF> &region);
void sceneRectChanged(const QRectF &rect);
void selectionChanged();
+ void focusItemChanged(QGraphicsItem *newFocus, QGraphicsItem *oldFocus, Qt::FocusReason reason);
private:
Q_DECLARE_PRIVATE(QGraphicsScene)