diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-04-30 11:23:37 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-04-30 11:23:37 +0200 |
commit | c896cc340d7e6e0878b3249c5792e6d88a12cf42 (patch) | |
tree | fd0a7a61ff1d07f301f2188de5cb6fa473134897 /src/tests/tabbar_test.cpp | |
parent | A tiny improvement in the error page, showing a fat icon.. :) (diff) | |
download | rekonq-c896cc340d7e6e0878b3249c5792e6d88a12cf42.tar.xz |
A coding style round
Diffstat (limited to 'src/tests/tabbar_test.cpp')
-rw-r--r-- | src/tests/tabbar_test.cpp | 38 |
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(); ? } |