summaryrefslogtreecommitdiff
path: root/src/tests/walletbar_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/walletbar_test.cpp')
-rw-r--r--src/tests/walletbar_test.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/tests/walletbar_test.cpp b/src/tests/walletbar_test.cpp
index a3b87710..ec9c3559 100644
--- a/src/tests/walletbar_test.cpp
+++ b/src/tests/walletbar_test.cpp
@@ -21,9 +21,9 @@
#include <qtest_kde.h>
-#include <QtTest>
#include <QtCore>
-#include <QtWebKit>
+#include <QtGui>
+#include <QtTest>
#include "walletbar.h"
@@ -48,11 +48,14 @@ private:
void WalletBarTest::initTestCase()
{
+ QWidget *w = new QWidget;
+ bar = new WalletBar(w);
}
void WalletBarTest::cleanupTestCase()
{
+ delete bar;
}
@@ -62,5 +65,5 @@ void WalletBarTest::cleanupTestCase()
// -------------------------------------------
-QTEST_MAIN(WalletBarTest)
+QTEST_KDEMAIN(WalletBarTest,GUI)
#include "walletbar_test.moc"