QMdiArea: Ignore events of other instances in the event filter.

This caused for example the variable QMdiAreaPrivate::isSubWindowsTiled
being cleared from another instance, which resulted in odd
resizing behavior.

Task-number: QTBUG-31448
Change-Id: I880f7e415d6654e52499df1bfaf99f2c55d86320
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Reviewed-by: Andy Shaw <andy.shaw@digia.com>
This commit is contained in:
Friedemann Kleint 2014-05-05 14:11:30 +02:00 committed by The Qt Project
parent 5bca5d0a51
commit 9e2c4bc67f

View File

@ -2591,6 +2591,9 @@ bool QMdiArea::eventFilter(QObject *object, QEvent *event)
return QAbstractScrollArea::eventFilter(object, event);
}
if (subWindow->mdiArea() != this)
return QAbstractScrollArea::eventFilter(object, event);
// QMdiSubWindow events:
switch (event->type()) {
case QEvent::Move: