summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qwidget.cpp
diff options
context:
space:
mode:
authoraxis <qt-info@nokia.com>2009-06-03 15:15:55 (GMT)
committeraxis <qt-info@nokia.com>2009-06-03 15:21:01 (GMT)
commit34c1e57a003cea4f359c05f07b6f255132e97b5f (patch)
treeac2def025c242f09307aead10e690e4f76617519 /src/gui/kernel/qwidget.cpp
parent49b6219dd12815d5155aa28bd8d1dbf26cf0b1d7 (diff)
downloadQt-34c1e57a003cea4f359c05f07b6f255132e97b5f.zip
Qt-34c1e57a003cea4f359c05f07b6f255132e97b5f.tar.gz
Qt-34c1e57a003cea4f359c05f07b6f255132e97b5f.tar.bz2
Added inputMethodQuery fallback to QWidget.
Diffstat (limited to 'src/gui/kernel/qwidget.cpp')
-rw-r--r--src/gui/kernel/qwidget.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/kernel/qwidget.cpp b/src/gui/kernel/qwidget.cpp
index 4fcedb4..955ac8b 100644
--- a/src/gui/kernel/qwidget.cpp
+++ b/src/gui/kernel/qwidget.cpp
@@ -8500,6 +8500,9 @@ QVariant QWidget::inputMethodQuery(Qt::InputMethodQuery query) const
return QRect(width()/2, 0, 1, height());
case Qt::ImFont:
return font();
+ case Qt::ImAnchorPosition:
+ // Fallback.
+ return inputMethodQuery(Qt::ImCursorPosition);
default:
return QVariant();
}