diff options
author | Lars Knoll <lars.knoll@nokia.com> | 2011-10-21 10:59:27 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-10-22 19:18:20 +0200 |
commit | 68dc5b90c04058ff8d940c093528effa80ac7e4a (patch) | |
tree | 5b811142be4fa460885c141baa31f2515c7e4857 /src/gui/kernel/qwindow.h | |
parent | e19292120b33f55a10f233bdaab7030f4299db66 (diff) |
Add virtual QWindow::focusObject() method
The method allows to retrieve the object that currently
has the input focus inside the Window. This is e.g.
required to correctly determine the context for keyboard
shortcuts.
Change-Id: I9e05ef62717973bac275ce34cc70fb86aa2d1e5b
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/gui/kernel/qwindow.h')
-rw-r--r-- | src/gui/kernel/qwindow.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/kernel/qwindow.h b/src/gui/kernel/qwindow.h index 44cbfd04e4..7d6a391339 100644 --- a/src/gui/kernel/qwindow.h +++ b/src/gui/kernel/qwindow.h @@ -196,6 +196,7 @@ public: void setScreen(QScreen *screen); virtual QAccessibleInterface *accessibleRoot() const; + virtual QObject *focusObject() const; QPoint mapToGlobal(const QPoint &pos) const; QPoint mapFromGlobal(const QPoint &pos) const; |