Fix stability issues in tst_qwidget with VERIFY_COLOR
authorJan Arve Saether <jan-arve.saether@digia.com>
Thu, 31 Oct 2013 13:27:49 +0000 (14:27 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 1 Nov 2013 13:52:47 +0000 (14:52 +0100)
commit7b33bd411061b021c6a6d68f64dfac205a4e65ac
tree25f2a5645796d7ece59a1980e3c92e920eed9a03
parentefc61299bd51018df272b296b2c849071f685a7f
Fix stability issues in tst_qwidget with VERIFY_COLOR

The grabbing always grabbed the desktop. This caused it to also grab
tooltips, siderbars etc that could overlap the window which again
caused the pixmap comparison to obviously fail.

This will currently only fix it on windows. If needed, it should also
be fixed for other platforms.

Task-number: QTBUG-30566
Change-Id: I5cee8651e1d94dedded0acae8b19f351acd976c4
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp