summaryrefslogtreecommitdiffstats
path: root/src/widgets/widgets/qlineedit.h
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@theqtcompany.com>2016-04-11 14:06:02 +0200
committerRichard Moe Gustavsen <richard.gustavsen@theqtcompany.com>2016-04-13 09:31:28 +0000
commitab67a5b7b631709aae779c767a903b8982fa7f8e (patch)
tree9a2fa10b7f0124b4eb651c8c41bc9726492ab69b /src/widgets/widgets/qlineedit.h
parent07a19c12a39034ff85568d82e800edd50a21741e (diff)
QLineEdit: add support for ImCursorPosition with position argument
Follow up f8dbed12, and implement support for IM queries that can take an extra QVariant argument. We use this to implement support for ImCursorPosition with a QPointF argument that specifies that we should return the text position under the given point rather than the current cursor pos (0bb645b). Change-Id: I03ae7af698241f454d35dec84f248ecd5bb6ad51 Reviewed-by: Jan Arve Sæther <jan-arve.saether@theqtcompany.com>
Diffstat (limited to 'src/widgets/widgets/qlineedit.h')
-rw-r--r--src/widgets/widgets/qlineedit.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/widgets/widgets/qlineedit.h b/src/widgets/widgets/qlineedit.h
index 6a24daa873..12fd998c45 100644
--- a/src/widgets/widgets/qlineedit.h
+++ b/src/widgets/widgets/qlineedit.h
@@ -228,6 +228,7 @@ protected:
void initStyleOption(QStyleOptionFrame *option) const;
public:
QVariant inputMethodQuery(Qt::InputMethodQuery) const Q_DECL_OVERRIDE;
+ Q_INVOKABLE QVariant inputMethodQuery(Qt::InputMethodQuery property, QVariant argument) const;
bool event(QEvent *) Q_DECL_OVERRIDE;
protected:
QRect cursorRect() const;