Removed Qt::ImhMultiLine
authorPekka Vuorela <pekka.ta.vuorela@nokia.com>
Mon, 2 Jan 2012 14:21:48 +0000 (16:21 +0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 5 Jan 2012 10:40:08 +0000 (11:40 +0100)
Multi line information does not really work that well as
input method hint. Application developer is the one setting
value for the hint, and thus would be responsible for
always having right value for multi line.

Change-Id: I6102be95549f6f6d4da40845f52d5c873cd46a47
Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
src/corelib/global/qnamespace.h
src/corelib/global/qnamespace.qdoc
src/widgets/widgets/qtextedit.cpp

index 0aa3f3c..64c4541 100644 (file)
@@ -1297,7 +1297,6 @@ public:
 
         ImhDate = 0x80,
         ImhTime = 0x100,
-        ImhMultiLine = 0x200,
 
         ImhDigitsOnly = 0x10000,
         ImhFormattedNumbersOnly = 0x20000,
index 267c25d..a733241 100644 (file)
 
     \value ImhDate                   The text editor functions as a date field.
     \value ImhTime                   The text editor functions as a time field.
-    \value ImhMultiLine              The text editor accepts multi-line content.
 
     Flags that restrict input (exclusive flags):
 
index c0a91e9..acd663e 100644 (file)
@@ -179,7 +179,6 @@ void QTextEditPrivate::init(const QString &html)
     q->setFocusPolicy(Qt::WheelFocus);
     q->setAttribute(Qt::WA_KeyCompression);
     q->setAttribute(Qt::WA_InputMethodEnabled);
-    q->setInputMethodHints(Qt::ImhMultiLine);
 
 #ifndef QT_NO_CURSOR
     viewport->setCursor(Qt::IBeamCursor);