summaryrefslogtreecommitdiff
path: root/src/tests/findbar_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/findbar_test.cpp')
-rw-r--r--src/tests/findbar_test.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tests/findbar_test.cpp b/src/tests/findbar_test.cpp
index 3fb0e244..6b81255f 100644
--- a/src/tests/findbar_test.cpp
+++ b/src/tests/findbar_test.cpp
@@ -21,9 +21,8 @@
#include <qtest_kde.h>
-#include <QtTest>
-#include <QtCore>
-#include <QtWebKit>
+#include <QtGui>
+#include <QtTest/QtTest>
#include "findbar.h"
#include "mainwindow.h"
@@ -43,6 +42,7 @@ private slots:
private:
FindBar *bar;
+ MainWindow *w;
};
@@ -51,7 +51,7 @@ private:
void FindBarTest::initTestCase()
{
- MainWindow *w = new MainWindow;
+ w = new MainWindow;
bar = new FindBar(w);
}
@@ -71,5 +71,5 @@ void FindBarTest::notifyMatch()
// -------------------------------------------
-QTEST_MAIN(FindBarTest)
+QTEST_KDEMAIN(FindBarTest, GUI)
#include "findbar_test.moc"