diff options
author | Zhang Yu <zhangyub@uniontech.com> | 2021-11-30 11:14:05 +0800 |
---|---|---|
committer | Zhang Yu <zhangyub@uniontech.com> | 2021-12-02 09:08:40 +0800 |
commit | c6c039167cfdbc28351a73cc0819461c69bc0451 (patch) | |
tree | fcd206c9d9a42ab6e3e2716cf5c6d5aff3304982 /tests/auto/corelib/tools/qmargins | |
parent | f814241abec7cb5317e2c7bf1f9722b2c671a9ba (diff) |
Fix fail to activate first sub window with QMdiArea::TabbedView
The first sub window added will activate itself automatically, and
isActive is set to true. Therefore the call to setActiveSubWindow to
activate the first sub window will be ignored.
When showing the mdiarea, all sub windows will be activated in the order
in which they were added, so the active window will always be the last
sub window added.
Fix this by setting isActive to false so that setActiveSubWindow
activates the first sub window when the mdiarea becomes active.
Fixes: QTBUG-92037
Pick-to: 6.2
Change-Id: Id4a793e2059803c1a4ada916fdae2d3cc02cdf06
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests/auto/corelib/tools/qmargins')
0 files changed, 0 insertions, 0 deletions