summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativetextinput/tst_qdeclarativetextinput.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2012-02-06 10:44:16 +0100
committerAndrew den Exter <andrew.den-exter@nokia.com>2012-02-07 02:35:18 +0100
commit8d0664c53177d0c823a66239858a101524595c7e (patch)
treee2ef6bc4441e4721e926bd3e8d4252cfc254ca7c /tests/auto/declarative/qdeclarativetextinput/tst_qdeclarativetextinput.cpp
parentca1008b7d85670aa069fb1ef5cb89db35b1cd1b6 (diff)
QtQuick1: Fix compilation on Windows.
- Add missing modules, includes. - Fix warnings. Change-Id: I21a6107db6c5978ccfd59c4202cf31e3deba19ca Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
Diffstat (limited to 'tests/auto/declarative/qdeclarativetextinput/tst_qdeclarativetextinput.cpp')
-rw-r--r--tests/auto/declarative/qdeclarativetextinput/tst_qdeclarativetextinput.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/declarative/qdeclarativetextinput/tst_qdeclarativetextinput.cpp b/tests/auto/declarative/qdeclarativetextinput/tst_qdeclarativetextinput.cpp
index 684fda63..9bc8a4fd 100644
--- a/tests/auto/declarative/qdeclarativetextinput/tst_qdeclarativetextinput.cpp
+++ b/tests/auto/declarative/qdeclarativetextinput/tst_qdeclarativetextinput.cpp
@@ -2199,6 +2199,8 @@ void tst_qdeclarativetextinput::openInputPanelOnClick()
QCOMPARE(ic.m_hideInputPanelCallCount, 0);
}
+
+
void tst_qdeclarativetextinput::openInputPanelOnFocus()
{
PlatformInputContext ic;
@@ -2693,7 +2695,7 @@ void tst_qdeclarativetextinput::cursorRectangleSize()
QDeclarativeTextInput *textInput = qobject_cast<QDeclarativeTextInput *>(canvas->rootObject());
QVERIFY(textInput != 0);
- textInput->setFocus(Qt::OtherFocusReason);
+ textInput->setFocus(true);
QRectF cursorRect = textInput->positionToRectangle(textInput->cursorPosition());
QRectF microFocusFromScene = canvas->scene()->inputMethodQuery(Qt::ImMicroFocus).toRectF();
QRectF microFocusFromApp= QApplication::focusWidget()->inputMethodQuery(Qt::ImMicroFocus).toRectF();