summaryrefslogtreecommitdiffstats
path: root/tests/auto/qstylesheetstyle/tst_qstylesheetstyle.cpp
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-09-04 07:09:54 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2009-09-04 10:56:00 (GMT)
commitf87b5e49bb3903676a57a69b9bbe1743141926c8 (patch)
tree0ffb38bb3477f5a72da32da988b99922c045720e /tests/auto/qstylesheetstyle/tst_qstylesheetstyle.cpp
parent69fb25cebb9e74b018026d3ab9aa75fcc959cfc5 (diff)
downloadQt-f87b5e49bb3903676a57a69b9bbe1743141926c8.zip
Qt-f87b5e49bb3903676a57a69b9bbe1743141926c8.tar.gz
Qt-f87b5e49bb3903676a57a69b9bbe1743141926c8.tar.bz2
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/tst_qstylesheetstyle.cpp')
-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 55b6e96..499d4e0 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;