diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-09-04 07:09:54 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-09-04 10:56:00 (GMT) |
commit | f87b5e49bb3903676a57a69b9bbe1743141926c8 (patch) | |
tree | 0ffb38bb3477f5a72da32da988b99922c045720e /tests/auto/qstylesheetstyle | |
parent | 69fb25cebb9e74b018026d3ab9aa75fcc959cfc5 (diff) | |
download | Qt-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')
-rw-r--r-- | tests/auto/qstylesheetstyle/tst_qstylesheetstyle.cpp | 3 |
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; |