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.cpp38
1 files changed, 24 insertions, 14 deletions
diff --git a/src/tests/tabbar_test.cpp b/src/tests/tabbar_test.cpp
index 560f2c9b..6df38657 100644
--- a/src/tests/tabbar_test.cpp
+++ b/src/tests/tabbar_test.cpp
@@ -35,23 +35,33 @@
class SubTabBar : public TabBar
{
public:
-
+
SubTabBar(QWidget *parent) : TabBar(parent) {};
QSize call_tabSizeHint(int index) const
- { return SubTabBar::tabSizeHint(index); }
-
+ {
+ return SubTabBar::tabSizeHint(index);
+ }
+
void call_mouseMoveEvent(QMouseEvent* event)
- { return SubTabBar::mouseMoveEvent(event); }
-
+ {
+ return SubTabBar::mouseMoveEvent(event);
+ }
+
void call_leaveEvent(QEvent* event)
- { return SubTabBar::leaveEvent(event); }
-
+ {
+ return SubTabBar::leaveEvent(event);
+ }
+
void call_mousePressEvent(QMouseEvent* event)
- { return SubTabBar::mousePressEvent(event); }
-
+ {
+ return SubTabBar::mousePressEvent(event);
+ }
+
void call_mouseReleaseEvent(QMouseEvent* event)
- { return SubTabBar::mouseReleaseEvent(event); }
+ {
+ return SubTabBar::mouseReleaseEvent(event);
+ }
};
@@ -65,14 +75,14 @@ class TabBarTest : public QObject
public slots:
void initTestCase();
void cleanupTestCase();
-
+
private slots:
void tabSizeHint_data();
void tabSizeHint();
-
+
void mousePress_data();
void mousePress();
-
+
private:
SubTabBar *_bar;
};
@@ -128,7 +138,7 @@ void TabBarTest::mousePress()
{
// QTest::mousePress(_bar, Qt::MidButton);
// // QCOMPARE(); ?
-//
+//
// QTest::mousePress(_bar, Qt::LeftButton);
// // QCOMPARE(); ?
}