summaryrefslogtreecommitdiffstats
path: root/tests/auto/qtextedit
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qtextedit')
-rw-r--r--tests/auto/qtextedit/qtextedit.pro2
-rw-r--r--tests/auto/qtextedit/tst_qtextedit.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/qtextedit/qtextedit.pro b/tests/auto/qtextedit/qtextedit.pro
index 5851763310..56a73f6478 100644
--- a/tests/auto/qtextedit/qtextedit.pro
+++ b/tests/auto/qtextedit/qtextedit.pro
@@ -1,6 +1,6 @@
load(qttest_p4)
-QT += gui-private
+QT += widgets widgets-private gui-private
INCLUDEPATH += ../
HEADERS +=
diff --git a/tests/auto/qtextedit/tst_qtextedit.cpp b/tests/auto/qtextedit/tst_qtextedit.cpp
index 7208861394..f10879d284 100644
--- a/tests/auto/qtextedit/tst_qtextedit.cpp
+++ b/tests/auto/qtextedit/tst_qtextedit.cpp
@@ -49,7 +49,7 @@
#include <qapplication.h>
#include <qclipboard.h>
#include <qtextbrowser.h>
-#include <private/qtextcontrol_p.h>
+#include <private/qwidgettextcontrol_p.h>
#include <qscrollbar.h>
#include <qtextobject.h>
#include <qtexttable.h>
@@ -1484,7 +1484,7 @@ void tst_QTextEdit::mimeDataReimplementations()
QCOMPARE(ed.insertCallCount, 0);
#ifdef QT_BUILD_INTERNAL
- QTextControl *control = qFindChild<QTextControl *>(&ed);
+ QWidgetTextControl *control = qFindChild<QWidgetTextControl *>(&ed);
QVERIFY(control);
control->canInsertFromMimeData(QApplication::clipboard()->mimeData());
@@ -2095,7 +2095,7 @@ void tst_QTextEdit::cursorRect()
void tst_QTextEdit::setDocumentPreservesPalette()
{
#ifdef QT_BUILD_INTERNAL
- QTextControl *control = qFindChild<QTextControl *>(ed);
+ QWidgetTextControl *control = qFindChild<QWidgetTextControl *>(ed);
QVERIFY(control);
QPalette defaultPal = ed->palette();