qt5base-lts/tests/auto
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
..
bic
compilerwarnings/data Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
concurrent Complete split of QtConcurrent. 2012-02-06 16:48:22 +01:00
corelib Fixed tst_qobject signalbug silently not compiled in -fast builds. 2012-02-23 09:06:44 +01:00
dbus Stabilize tst_qdbusabstractinterface and make it XFAIL 2012-02-20 23:34:35 +01:00
gui Fix rounding error in QInputMethod::cursorRectangle(). 2012-02-23 09:33:27 +01:00
guiapplauncher
network Fix the qlocalsocket test 2012-02-21 22:31:00 +01:00
opengl Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
other Add further theme hints to QPlatformTheme. 2012-02-22 17:28:51 +01:00
shared Refactor input context tests 2012-02-22 13:54:13 +01:00
sql QSqlTableModel::commitAll(): replace row removal hack 2012-02-15 02:36:21 +01:00
testlib Port badxml autotest to QMetaObjectBuilder 2012-02-21 13:57:12 +01:00
tools uic: use QStringLiteral() instead of QString::fromUtf8() where applicable 2012-02-20 15:17:08 +01:00
widgets Fix conflict between QMainWindow::restoreState() and QWidget::setStylesheet() 2012-02-23 10:14:24 +01:00
xml Fix breakage in dead code 2012-02-22 17:32:32 +01:00
auto.pro Disable 'check' target generation for network autotests for Windows. 2012-02-17 11:48:08 +01:00
network-settings.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
platformquirks.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
test.pl Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00