qt6-bb10/tests/auto/widgets
Debao Zhang d2f65aa470 Fix conflict between QMainWindow::restoreState() and QWidget::setStylesheet()
If QMainWindow::restoreState() then QWidget::setStylesheet() were called
before the QMainWindow is shown, the size of QDockWidget can not be
restored.

QWidget::setStylesheet() will generate QEvent::StyleChange event, which will
cause the function QDockAreaLayout::fitLayout() to be called before the layout
of MainWindow is activated. Although the state info has been stored in
a QMainWindowLayoutState variable by QMainWindow::restoreState(), but
QMainWindowLayout::setGeometry() still isn't called at present. So
QDockAreaLayout::fitLayout() will force the size of dockwidgets
and centralwidget to be calculated using the wrong geometry, which will
break the state restored by QMainWindow::restoreState().

This is a side effect of 692e9103ebb85b90e79377206d5d03b704d43d42.

Task-number: QTBUG-15080

Change-Id: I8cda6a529d178f7467a59b780db80df0a44d4769
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
2012-02-23 10:14:24 +01:00
..
dialogs Add further theme hints to QPlatformTheme. 2012-02-22 17:28:51 +01:00
effects Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
graphicsview Refactor input context tests 2012-02-22 13:54:13 +01:00
itemviews Make 'nmake check' succeed for widgets tests 2012-02-17 14:08:19 +01:00
kernel Add further theme hints to QPlatformTheme. 2012-02-22 17:28:51 +01:00
styles Make 'nmake check' succeed for widgets tests 2012-02-17 14:08:19 +01:00
util Eliminate duplicate data row names in widgets autotests. 2012-02-15 02:36:47 +01:00
widgets Fix conflict between QMainWindow::restoreState() and QWidget::setStylesheet() 2012-02-23 10:14:24 +01:00
widgets.pro Moved tests into integrationtests/ and widgets/ 2011-10-20 19:45:41 +02:00