summaryrefslogtreecommitdiff
path: root/src/tests/tabbar_test.cpp
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/tests/tabbar_test.cpp
parent0.3.96 (diff)
downloadrekonq-723a8850299e2732a4ace01f12a50f6b7e78561c.tar.xz
Fixing scripts and tests to start reloading them..
Diffstat (limited to 'src/tests/tabbar_test.cpp')
-rw-r--r--src/tests/tabbar_test.cpp36
1 files changed, 14 insertions, 22 deletions
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);
}
// -------------------------------------------