QNX: Fix QMdiWindow autotests
authorFabian Bumberger <fbumberger@rim.com>
Tue, 8 Apr 2014 17:31:45 +0000 (19:31 +0200)
committerFabian Bumberger <fbumberger@rim.com>
Wed, 25 Jun 2014 12:43:13 +0000 (14:43 +0200)
commite83c52a997dd84f3f69c5a9d3b787ee04c6d78f1
treea0429d595b1f801994026206bd0e7c95f9127eb4
parent7a4dcbaabf037a6913a5662ebb74cc47e04673b9
QNX: Fix QMdiWindow autotests

In "setOpaqueResizeAndMove" this patch makes sure that the content of a subwindow
actually fits into the window, otherwise the resize does not work properly.
The content is dpi dependent and thus the pixel size of it increases with the display
dpi value.
Furthermore when moving the QMdiSubwindow this patch makes sure that we actually grab
the window's header and not one of it's tool buttons (minimize, maximize, close).

Change-Id: I88314994957c5883f57c09c9240a3b83f1ee42ed
Reviewed-by: Sergio Ahumada <sahumada@blackberry.com>
Reviewed-by: Bernd Weimer <bweimer@blackberry.com>
tests/auto/widgets/widgets/qmdisubwindow/tst_qmdisubwindow.cpp