summaryrefslogtreecommitdiff
path: root/src/gui/graphicsview/qgraphicsproxywidget_p.h
diff options
context:
space:
mode:
authorjasplin <qt-info@nokia.com>2009-07-03 15:40:20 +0200
committerjasplin <qt-info@nokia.com>2009-07-03 16:04:04 +0200
commit7bc98d7bd7aabc6086e5cd27a167769d7aa71d83 (patch)
treed90f7a01a905212f9e96fbb14b41322172100548 /src/gui/graphicsview/qgraphicsproxywidget_p.h
parentccdf924d01cbcb716ed25862561bb94d53ffed1f (diff)
downloadqt4-tools-7bc98d7bd7aabc6086e5cd27a167769d7aa71d83.tar.gz
Improved the support for input methods in Graphics View.
This patch improves the graphics view support for input methods in several ways: * A new ItemAcceptsInputMethod flag is introduced to serve the same purpose for graphics items as WA_InputMethodEnabled does for widgets: Input method support can be controlled individually for each item. * The input method sensitivity of a view (i.e. the value of the WA_InputMethodEnabled flag) is updated dynamically whenever the input method support of the current focus item may change. * Input contexts are reset whenever an item that supports input methods loses focus. Reviewed-by: janarve Task-number: 254492
Diffstat (limited to 'src/gui/graphicsview/qgraphicsproxywidget_p.h')
-rw-r--r--src/gui/graphicsview/qgraphicsproxywidget_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/graphicsview/qgraphicsproxywidget_p.h b/src/gui/graphicsview/qgraphicsproxywidget_p.h
index ec5400a222..fbc9f6ca28 100644
--- a/src/gui/graphicsview/qgraphicsproxywidget_p.h
+++ b/src/gui/graphicsview/qgraphicsproxywidget_p.h
@@ -102,6 +102,8 @@ public:
void updateWidgetGeometryFromProxy();
void updateProxyGeometryFromWidget();
+ void updateProxyInputMethodAcceptanceFromWidget();
+
QPointF mapToReceiver(const QPointF &pos, const QWidget *receiver) const;
enum ChangeMode {