10a143ccd7
QDockWidgetLayoutState::itemRect() has been used to calculate a dock widget's size when unplugging from the main window. This method is meant to calculate the size of the rubber band, showing the dock widget's dock area. The rubber band is by QDockAreaLayout::sep wider (top or bottom dock) or higher (left or right dock) than the respective dock widget. This is to make sure the rubber band is never fully covered by the dock widget. By wrongly using itemRect() also for the dock widget's size after unplugging, the dock widget grows in size each time it is unplugged. This patch passes an invalid QRect to QDockWidgetPrivate::unplug(), in order to prevent resizing. tst_QDockWidget::unplugAndResize() is extended to check size consistency after unplugging (corrected for frame margins). Fixes: QTBUG-106531 Pick-to: 6.4 6.2 Change-Id: I1cf9f695691b0e165a5cb2881781602426e5d587 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> |
||
---|---|---|
.. | ||
auto | ||
baseline | ||
benchmarks | ||
global | ||
libfuzzer | ||
manual | ||
shared | ||
testserver | ||
CMakeLists.txt | ||
README |
This directory contains autotests and benchmarks based on Qt Test. In order to run the autotests reliably, you need to configure a desktop to match the test environment that these tests are written for. Linux X11: * The user must be logged in to an active desktop; you can't run the autotests without a valid DISPLAY that allows X11 connections. * The tests are run against a KDE3 or KDE4 desktop. * Window manager uses "click to focus", and not "focus follows mouse". Many tests move the mouse cursor around and expect this to not affect focus and activation. * Disable "click to activate", i.e., when a window is opened, the window manager should automatically activate it (give it input focus) and not wait for the user to click the window.