summaryrefslogtreecommitdiffstats
path: root/tests/auto/qstylesheetstyle
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-09-04 09:09:54 +0200
committerOlivier Goffart <ogoffart@trolltech.com>2009-09-04 12:56:00 +0200
commitf87b5e49bb3903676a57a69b9bbe1743141926c8 (patch)
tree0ffb38bb3477f5a72da32da988b99922c045720e /tests/auto/qstylesheetstyle
parent69fb25cebb9e74b018026d3ab9aa75fcc959cfc5 (diff)
Fix the QStyleSheet test with pulse.
The windows manager was moving the window behind our back, making the test fails sometimes Reviewed-by: Thierry
Diffstat (limited to 'tests/auto/qstylesheetstyle')
-rw-r--r--tests/auto/qstylesheetstyle/tst_qstylesheetstyle.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/qstylesheetstyle/tst_qstylesheetstyle.cpp b/tests/auto/qstylesheetstyle/tst_qstylesheetstyle.cpp
index 55b6e96b46..499d4e0400 100644
--- a/tests/auto/qstylesheetstyle/tst_qstylesheetstyle.cpp
+++ b/tests/auto/qstylesheetstyle/tst_qstylesheetstyle.cpp
@@ -828,7 +828,8 @@ void tst_QStyleSheetStyle::hoverColors()
widgets << new QLabel("<b>TESTING</b>");
foreach (QWidget *widget, widgets) {
- QDialog frame;
+ //without Qt::X11BypassWindowManagerHint the window manager may move the window after we moved the cursor
+ QDialog frame(0, Qt::X11BypassWindowManagerHint);
QLayout* layout = new QGridLayout;
QLineEdit* dummy = new QLineEdit;