QPlainTextEdit: set Qt::ImhMultiLine
authorRichard Moe Gustavsen <richard.gustavsen@digia.com>
Thu, 12 Dec 2013 12:47:44 +0000 (13:47 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 30 Jan 2014 14:55:04 +0000 (15:55 +0100)
commit97fd5399bca4f10393884cfd3bb20c29fb5361b4
tree9a90a2f5215d1f8e9af08d144b8188e626fc7372
parent1090ee664ba14a16036eb4d539006c4f8c7a545a
QPlainTextEdit: set Qt::ImhMultiLine

Like QTextEdit, QPlainTextEdit should also set the
input method hint Qt::ImhMultiLine.
An important reason for this, is that the iOS plugin
will inspect the input method hints of the focus
object to decide which type of keyboard (and return
key) to use. Failing to set this hint will result
in the iOS plugin setting the return key to 'done'
instead of 'return' for this widget.

Change-Id: Idd5aaf21505add608f2621f94655984f42e92a18
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
src/widgets/widgets/qplaintextedit.cpp