diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-11-16 08:59:05 +0100 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-11-16 09:05:49 +0100 |
commit | 021a8ce5f767d2fdeb72cebc6d6e8bb08b87f24d (patch) | |
tree | 8611afe7c2c906159896faee82a033b284850785 /src/widgets/kernel/qwidget.h | |
parent | dba45c72729e3a250badaacafb39cf8d1798f940 (diff) |
Give QWidget::updateMicroFocus a parameter with default
This allows for potential optimizations in widgets, e.g. no need to for the
input method to query all data when only the cursor position changed.
Change-Id: Idd1e554acd776ed4d225197ce80915d651ede904
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/widgets/kernel/qwidget.h')
-rw-r--r-- | src/widgets/kernel/qwidget.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/kernel/qwidget.h b/src/widgets/kernel/qwidget.h index b423b0ebad..14608a5f13 100644 --- a/src/widgets/kernel/qwidget.h +++ b/src/widgets/kernel/qwidget.h @@ -667,7 +667,7 @@ public: void setInputMethodHints(Qt::InputMethodHints hints); protected Q_SLOTS: - void updateMicroFocus(); + void updateMicroFocus(Qt::InputMethodQuery query = Qt::ImQueryAll); protected: void create(WId = 0, bool initializeWindow = true, |