From f8dbed12266c42785c1e4758eed05833ec035f33 Mon Sep 17 00:00:00 2001 From: Paul Olav Tvete Date: Mon, 20 Jan 2014 12:30:35 +0100 Subject: Extending the inputMethodQuery API Currently, inputMethodQuery() only provides information about the current paragraph. On some platforms, such as Android, the input method needs information about the global cursor position, and more of the surrounding text. Some queries need to pass parameters. The current inputmethodQuery() implementation does not allow parameters to be passed. Changing this would require new or modified virtual functions, which is not possible until Qt 6. Therefore, a completely new mechanism is needed. Change-Id: Ic64fd90198ade70aa0fa6fa5ad3867dfa7ed763c Reviewed-by: Lars Knoll --- src/widgets/widgets/qtextedit.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/widgets/widgets/qtextedit.h') diff --git a/src/widgets/widgets/qtextedit.h b/src/widgets/widgets/qtextedit.h index 406d8b2c4b..a283a51b90 100644 --- a/src/widgets/widgets/qtextedit.h +++ b/src/widgets/widgets/qtextedit.h @@ -212,6 +212,7 @@ public: void print(QPagedPaintDevice *printer) const; QVariant inputMethodQuery(Qt::InputMethodQuery property) const; + Q_INVOKABLE QVariant inputMethodQuery(Qt::InputMethodQuery query, QVariant argument) const; public Q_SLOTS: void setFontPointSize(qreal s); -- cgit v1.2.3