summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicsscene_p.h
diff options
context:
space:
mode:
authorAndreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com>2009-07-22 07:19:12 (GMT)
committerAndreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com>2009-07-23 06:59:47 (GMT)
commit3f630677d415d4a67938fa6cf64754c80aa30ba0 (patch)
tree9d521157a0022ac3eae3e05a8888b952c8421962 /src/gui/graphicsview/qgraphicsscene_p.h
parent708150e3a88fdc5f7c3d1998f2b5132cea264a71 (diff)
downloadQt-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/qgraphicsscene_p.h')
-rw-r--r--src/gui/graphicsview/qgraphicsscene_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/graphicsview/qgraphicsscene_p.h b/src/gui/graphicsview/qgraphicsscene_p.h
index 9a91acc..a4bbdd2 100644
--- a/src/gui/graphicsview/qgraphicsscene_p.h
+++ b/src/gui/graphicsview/qgraphicsscene_p.h
@@ -130,6 +130,8 @@ public:
QGraphicsWidget *tabFocusFirst;
QGraphicsWidget *activeWindow;
int activationRefCount;
+ void setFocusItemHelper(QGraphicsItem *item, Qt::FocusReason focusReason);
+ QMultiHash<QGraphicsItem *, QGraphicsItem *> focusProxyReverseMap;
QList<QGraphicsWidget *> popupWidgets;
void addPopup(QGraphicsWidget *widget);