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.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);
}
// -------------------------------------------