summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicsproxywidget_p.h
diff options
context:
space:
mode:
authorjasplin <qt-info@nokia.com>2009-07-03 13:40:20 (GMT)
committerjasplin <qt-info@nokia.com>2009-07-03 14:04:04 (GMT)
commit7bc98d7bd7aabc6086e5cd27a167769d7aa71d83 (patch)
treed90f7a01a905212f9e96fbb14b41322172100548 /src/gui/graphicsview/qgraphicsproxywidget_p.h
parentccdf924d01cbcb716ed25862561bb94d53ffed1f (diff)
downloadQt-7bc98d7bd7aabc6086e5cd27a167769d7aa71d83.zip
Qt-7bc98d7bd7aabc6086e5cd27a167769d7aa71d83.tar.gz
Qt-7bc98d7bd7aabc6086e5cd27a167769d7aa71d83.tar.bz2
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 ec5400a..fbc9f6c 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 {