diff options
author | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2009-06-04 09:16:17 (GMT) |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2009-06-04 09:16:17 (GMT) |
commit | 1c9663c0eb592cb40dc6e51965d065a3c16e31c1 (patch) | |
tree | eb33b10f5e5688793382f51517b8e7d857457ba5 | |
parent | fc96ef8bf45482483d795fe3d979fb842869a315 (diff) | |
parent | efcc087e7da35f6db0e544f48493626f4fa2d56a (diff) | |
download | Qt-1c9663c0eb592cb40dc6e51965d065a3c16e31c1.zip Qt-1c9663c0eb592cb40dc6e51965d065a3c16e31c1.tar.gz Qt-1c9663c0eb592cb40dc6e51965d065a3c16e31c1.tar.bz2 |
Merge branch 'master' of git@scm.dev.troll.no:qt/qt-s60-public
-rw-r--r-- | src/gui/graphicsview/qgraphicsview.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/gui/graphicsview/qgraphicsview.cpp b/src/gui/graphicsview/qgraphicsview.cpp index a795fb4..8137f8e 100644 --- a/src/gui/graphicsview/qgraphicsview.cpp +++ b/src/gui/graphicsview/qgraphicsview.cpp @@ -1195,6 +1195,11 @@ QGraphicsView::QGraphicsView(QWidget *parent) // using a simple reference count. The same goes for acceptDrops and mouse // tracking. setAttribute(Qt::WA_InputMethodEnabled); + + // viewport part of the graphics view has to be enabled + // as well, because when events come this widget is asked + // for input context and so on + viewport()->setAttribute(Qt::WA_InputMethodEnabled); } /*! @@ -1209,6 +1214,11 @@ QGraphicsView::QGraphicsView(QGraphicsScene *scene, QWidget *parent) setAcceptDrops(true); setBackgroundRole(QPalette::Base); setAttribute(Qt::WA_InputMethodEnabled); + + // viewport part of the graphics view has to be enabled + // as well, because when events come this widget is asked + // for input context and so on + viewport()->setAttribute(Qt::WA_InputMethodEnabled); } /*! @@ -1221,6 +1231,11 @@ QGraphicsView::QGraphicsView(QGraphicsViewPrivate &dd, QWidget *parent) setAcceptDrops(true); setBackgroundRole(QPalette::Base); setAttribute(Qt::WA_InputMethodEnabled); + + // viewport part of the graphics view has to be enabled + // as well, because when events come this widget is asked + // for input context and so on + viewport()->setAttribute(Qt::WA_InputMethodEnabled); } /*! |