diff options
author | Dominik Holland <dominik.holland@nokia.com> | 2010-08-05 11:43:13 (GMT) |
---|---|---|
committer | Harald Fernengel <harald.fernengel@nokia.com> | 2010-11-02 14:31:12 (GMT) |
commit | ead0c87a27a48881cb8fcf8319eb14f53e8a9bb1 (patch) | |
tree | 57e58d379a6bd4f91cb19039835ba707adb5b706 /tests/auto/qstylesheetstyle | |
parent | 565db9695dc62038e25cd5207731ac4ad59c4a05 (diff) | |
download | Qt-ead0c87a27a48881cb8fcf8319eb14f53e8a9bb1.zip Qt-ead0c87a27a48881cb8fcf8319eb14f53e8a9bb1.tar.gz Qt-ead0c87a27a48881cb8fcf8319eb14f53e8a9bb1.tar.bz2 |
Fixed QStyleSheetStyle autotest to use a dummy toplevel widget
-use platform quirks to skip tests
Diffstat (limited to 'tests/auto/qstylesheetstyle')
-rw-r--r-- | tests/auto/qstylesheetstyle/tst_qstylesheetstyle.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/auto/qstylesheetstyle/tst_qstylesheetstyle.cpp b/tests/auto/qstylesheetstyle/tst_qstylesheetstyle.cpp index 04b1e79..0396408 100644 --- a/tests/auto/qstylesheetstyle/tst_qstylesheetstyle.cpp +++ b/tests/auto/qstylesheetstyle/tst_qstylesheetstyle.cpp @@ -48,6 +48,7 @@ #endif #include <private/qstylesheetstyle_p.h> +#include "../platformquirks.h" //TESTED_CLASS= //TESTED_FILES= @@ -822,6 +823,8 @@ void tst_QStyleSheetStyle::focusColors() void tst_QStyleSheetStyle::hoverColors() { + if (!PlatformQuirks::haveMouseCursor()) + QSKIP("No mouse Cursor on this platform",SkipAll); QList<QWidget *> widgets; widgets << new QPushButton("TESTING"); widgets << new QLineEdit("TESTING"); @@ -979,10 +982,11 @@ void tst_QStyleSheetStyle::background() void tst_QStyleSheetStyle::tabAlignement() { - QTabWidget tabWidget; + QWidget topLevel; + QTabWidget tabWidget(&topLevel); tabWidget.addTab(new QLabel("tab1"),"tab1"); tabWidget.resize(QSize(400,400)); - tabWidget.show(); + topLevel.show(); QTest::qWaitForWindowShown(&tabWidget); QTest::qWait(50); QTabBar *bar = qFindChild<QTabBar*>(&tabWidget); |