diff options
author | Lars Knoll <lars.knoll@nokia.com> | 2011-09-08 14:37:22 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@nokia.com> | 2011-09-08 14:47:39 +0200 |
commit | b002e21d15ec8ecf6455c75055c6ca3112d5f756 (patch) | |
tree | ac7ed8a89a50b4d881bad0f29da9ab5c22cae37c /src/gui/kernel/qinputpanel.cpp | |
parent | 49bb37e05d9b7047a80c93667d43657395bdec73 (diff) |
Change the QInputMethodQueryEvent to be able to query a set of properties
The event now takes a Qt::InputMethodQueries bitfield. Like this the
editor can set all properties in one go on the event instead of
having to process many query events.
Change-Id: Ifd9d7328a9fce0c21625371ec744ea2090e163be
Reviewed-on: http://codereview.qt-project.org/4448
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'src/gui/kernel/qinputpanel.cpp')
-rw-r--r-- | src/gui/kernel/qinputpanel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qinputpanel.cpp b/src/gui/kernel/qinputpanel.cpp index eda93e005c..233ac93cb8 100644 --- a/src/gui/kernel/qinputpanel.cpp +++ b/src/gui/kernel/qinputpanel.cpp @@ -101,7 +101,7 @@ QRectF QInputPanel::cursorRectangle() const QInputMethodQueryEvent query(Qt::ImCursorRectangle); QGuiApplication::sendEvent(d->inputItem.data(), &query); - QRect r = query.value().toRect(); + QRect r = query.value(Qt::ImCursorRectangle).toRect(); if (!r.isValid()) return QRect(); |