summaryrefslogtreecommitdiff
path: root/src/tests/tabbar_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/tabbar_test.cpp')
-rw-r--r--src/tests/tabbar_test.cpp17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/tests/tabbar_test.cpp b/src/tests/tabbar_test.cpp
index 7b40c487..08f295d1 100644
--- a/src/tests/tabbar_test.cpp
+++ b/src/tests/tabbar_test.cpp
@@ -18,8 +18,11 @@
* Boston, MA 02110-1301 USA
*/
-#include <QtGui/QtGui>
-#include <QtTest/QtTest>
+#include <qtest_kde.h>
+
+#include <QtTest>
+#include <QtCore>
+#include <QtGui>
#include "../tabbar.h"
@@ -101,6 +104,7 @@ void TabBarTest::cleanup()
{
}
+// -------------------------------------------
void TabBarTest::tabbar_data()
{
@@ -109,8 +113,10 @@ void TabBarTest::tabbar_data()
void TabBarTest::tabbar()
{
+ SubTabBar widget;
}
+// -------------------------------------------
void TabBarTest::tabSizeHint_data()
{
@@ -127,7 +133,8 @@ void TabBarTest::tabSizeHint()
// SubTabBar bar;
// QVERIFY(bar.call_tabSizeHint(index).width() <= 250);
}
+
+// -------------------------------------------
-
-QTEST_MAIN(TabBarTest)
-#include "tst_tabbar.moc"
+QTEST_KDEMAIN(TabBarTest, GUI)
+#include "tabbar_test.moc"