summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativetextinput
diff options
context:
space:
mode:
authorAndrew den Exter <andrew.den-exter@nokia.com>2012-01-31 13:58:44 +1000
committerAndrew den Exter <andrew.den-exter@nokia.com>2012-01-31 06:34:44 +0100
commitf973bb1730e1138f9c745d142c1f2f5d9c53b456 (patch)
treec04bc36a5ae8fddf29e6fe37f55e3ec2af59de3f /tests/auto/declarative/qdeclarativetextinput
parentdbf35e498db723ae9850686e462ec4f45bc7b67c (diff)
Fix compile failures.
Remove uses of QLineControl, QTextControl and QBool and forward declared QGraphicsWidget. Change-Id: Ic5184a1d5aebfb1100ad0e24444b6773f4e617e8 Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com>
Diffstat (limited to 'tests/auto/declarative/qdeclarativetextinput')
-rw-r--r--tests/auto/declarative/qdeclarativetextinput/tst_qdeclarativetextinput.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/declarative/qdeclarativetextinput/tst_qdeclarativetextinput.cpp b/tests/auto/declarative/qdeclarativetextinput/tst_qdeclarativetextinput.cpp
index ee81e4c8..9d9ec69b 100644
--- a/tests/auto/declarative/qdeclarativetextinput/tst_qdeclarativetextinput.cpp
+++ b/tests/auto/declarative/qdeclarativetextinput/tst_qdeclarativetextinput.cpp
@@ -51,7 +51,7 @@
#include <QInputContext>
#include <private/qapplication_p.h>
#include <private/qinputpanel_p.h>
-#include <private/qlinecontrol_p.h>
+#include <private/qwidgetlinecontrol_p.h>
#include "../shared/platforminputcontext.h"
#include "qplatformdefs.h"
@@ -1757,7 +1757,7 @@ void tst_qdeclarativetextinput::canPasteEmpty() {
QDeclarativeTextInput *textInput = qobject_cast<QDeclarativeTextInput*>(textInputComponent.create());
QVERIFY(textInput != 0);
- QLineControl lc;
+ QWidgetLineControl lc;
bool cp = !lc.isReadOnly() && QApplication::clipboard()->text().length() != 0;
QCOMPARE(textInput->canPaste(), cp);
@@ -1775,7 +1775,7 @@ void tst_qdeclarativetextinput::canPaste() {
QDeclarativeTextInput *textInput = qobject_cast<QDeclarativeTextInput*>(textInputComponent.create());
QVERIFY(textInput != 0);
- QLineControl lc;
+ QWidgetLineControl lc;
bool cp = !lc.isReadOnly() && QApplication::clipboard()->text().length() != 0;
QCOMPARE(textInput->canPaste(), cp);