summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-02-26 11:20:16 +0100
committerAndrea Diamantini <adjam7@gmail.com>2010-02-26 11:20:16 +0100
commit723a8850299e2732a4ace01f12a50f6b7e78561c (patch)
tree69eb351204b5f86b34f88b0286193f55630309d9 /src
parent0.3.96 (diff)
downloadrekonq-723a8850299e2732a4ace01f12a50f6b7e78561c.tar.xz
Fixing scripts and tests to start reloading them..
Diffstat (limited to 'src')
-rw-r--r--src/tests/CMakeLists.txt16
-rw-r--r--src/tests/tabbar_test.cpp36
2 files changed, 22 insertions, 30 deletions
diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt
index 5df23e24..18de9299 100644
--- a/src/tests/CMakeLists.txt
+++ b/src/tests/CMakeLists.txt
@@ -20,13 +20,13 @@ target_link_libraries( tabbar_test
##### ------------- mainview test
-kde4_add_unit_test( mainview_test mainview_test.cpp )
-
-target_link_libraries( mainview_test
- kdeinit_rekonq
- ${KDE4_KDECORE_LIBS}
- ${KDE4_KDEUI_LIBS}
- ${QT_QTTEST_LIBRARY}
-)
+# kde4_add_unit_test( mainview_test mainview_test.cpp )
+#
+# target_link_libraries( mainview_test
+# kdeinit_rekonq
+# ${KDE4_KDECORE_LIBS}
+# ${KDE4_KDEUI_LIBS}
+# ${QT_QTTEST_LIBRARY}
+# )
############################################################
diff --git a/src/tests/tabbar_test.cpp b/src/tests/tabbar_test.cpp
index 08f295d1..7162e6a4 100644
--- a/src/tests/tabbar_test.cpp
+++ b/src/tests/tabbar_test.cpp
@@ -50,32 +50,23 @@ private slots:
class SubTabBar : public TabBar
{
public:
- void call_cloneTab(int index)
- { return SubTabBar::cloneTab(index); }
-
- void call_closeOtherTabs(int index)
- { return SubTabBar::closeOtherTabs(index); }
-
- void call_closeTab(int index)
- { return SubTabBar::closeTab(index); }
+
+ SubTabBar(QWidget *parent) : TabBar(parent) {};
+ QSize call_tabSizeHint(int index) const
+ { return SubTabBar::tabSizeHint(index); }
+
void call_mouseMoveEvent(QMouseEvent* event)
{ return SubTabBar::mouseMoveEvent(event); }
-
+
+ void call_leaveEvent(QEvent* event)
+ { return SubTabBar::leaveEvent(event); }
+
void call_mousePressEvent(QMouseEvent* event)
{ return SubTabBar::mousePressEvent(event); }
-
- void call_reloadAllTabs()
- { return SubTabBar::reloadAllTabs(); }
-
- void call_reloadTab(int index)
- { return SubTabBar::reloadTab(index); }
-
- QSize call_tabSizeHint(int index) const
- { return SubTabBar::tabSizeHint(index); }
-
- void call_showTabPreview(int tab)
- { return SubTabBar::showTabPreview(tab); }
+
+ void call_mouseReleaseEvent(QMouseEvent* event)
+ { return SubTabBar::mouseReleaseEvent(event); }
};
@@ -113,7 +104,8 @@ void TabBarTest::tabbar_data()
void TabBarTest::tabbar()
{
- SubTabBar widget;
+ QWidget *w = new QWidget;
+ SubTabBar widget(w);
}
// -------------------------------------------