aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAndrew den Exter <andrew.den-exter@nokia.com>2011-11-10 13:20:45 +1000
committerQt by Nokia <qt-info@nokia.com>2011-12-02 09:05:05 +0100
commit310d1c18f3462d5fc04efd69dc4a246a5819189d (patch)
tree86d35adcf6d460a186e0546ad562a212e01d05cb /tests
parente32eb8ee5d413ab6a908c2e3274645a489cb9df2 (diff)
Use QWidgetLineControl in the QtQuick1 TextInput.
QDeclarative1TextInput and QLineEdit have the same compatbility requirements so it makes sense they continue sharing the same line control implementation. This allows the QtQuick 2 TextInput to diverge without creating a third variation of QLineControl. Task-number: QTBUG-22627 Change-Id: Ic06f66f1cb55e78f7129889a4877c3aba5ba72f6 Reviewed-by: Martin Jones <martin.jones@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qtquick1/qdeclarativetextinput/tst_qdeclarativetextinput.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qtquick1/qdeclarativetextinput/tst_qdeclarativetextinput.cpp b/tests/auto/qtquick1/qdeclarativetextinput/tst_qdeclarativetextinput.cpp
index ec6b3dd426..0409bd81ba 100644
--- a/tests/auto/qtquick1/qdeclarativetextinput/tst_qdeclarativetextinput.cpp
+++ b/tests/auto/qtquick1/qdeclarativetextinput/tst_qdeclarativetextinput.cpp
@@ -1812,7 +1812,7 @@ void tst_qdeclarativetextinput::canPasteEmpty() {
QDeclarative1TextInput *textInput = qobject_cast<QDeclarative1TextInput*>(textInputComponent.create());
QVERIFY(textInput != 0);
- QLineControl lc;
+ QWidgetLineControl lc;
bool cp = !lc.isReadOnly() && QApplication::clipboard()->text().length() != 0;
QCOMPARE(textInput->canPaste(), cp);
@@ -1830,7 +1830,7 @@ void tst_qdeclarativetextinput::canPaste() {
QDeclarative1TextInput *textInput = qobject_cast<QDeclarative1TextInput*>(textInputComponent.create());
QVERIFY(textInput != 0);
- QLineControl lc;
+ QWidgetLineControl lc;
bool cp = !lc.isReadOnly() && QApplication::clipboard()->text().length() != 0;
QCOMPARE(textInput->canPaste(), cp);