q->connect(control, SIGNAL(displayTextChanged(QString)),
q, SLOT(updateRect()));
q->updateSize();
+ imHints &= ~Qt::ImhMultiLine;
oldValidity = control->hasAcceptableInput();
lastSelectionStart = 0;
lastSelectionEnd = 0;
//Normal
ref &= ~Qt::ImhHiddenText;
ref &= ~(Qt::ImhNoAutoUppercase | Qt::ImhNoPredictiveText);
- QEXPECT_FAIL("", "QTBUG-21686", Abort);
QCOMPARE(input->inputMethodHints(), ref);
input->setEchoMode(QSGTextInput::NoEcho);
QCOMPARE(input->text(), initial);
QCOMPARE(input->displayText(), QLatin1String("Q"));
QCOMPARE(input->inputMethodQuery(Qt::ImSurroundingText).toString(), QLatin1String("Q"));
input->setFocus(true);
+ QVERIFY(input->hasActiveFocus());
QInputMethodEvent inputEvent;
inputEvent.setCommitString(initial);
- QGuiApplication::sendEvent(&canvas, &inputEvent);
+ QGuiApplication::sendEvent(input, &inputEvent);
QCOMPARE(input->text(), initial);
QCOMPARE(input->displayText(), initial);
QCOMPARE(input->inputMethodQuery(Qt::ImSurroundingText).toString(), initial);