winrt: fix tst_QFocusEvent
Change-Id: Ib2e82554c09a88a20fd789213a3040d6c6e42383 Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
This commit is contained in:
parent
35d8c23a1f
commit
0acd59153c
@ -345,9 +345,10 @@ void tst_QFocusEvent::checkReason_ActiveWindow()
|
|||||||
d->hide();
|
d->hide();
|
||||||
|
|
||||||
if (!QGuiApplication::platformName().compare(QLatin1String("offscreen"), Qt::CaseInsensitive)
|
if (!QGuiApplication::platformName().compare(QLatin1String("offscreen"), Qt::CaseInsensitive)
|
||||||
|| !QGuiApplication::platformName().compare(QLatin1String("minimal"), Qt::CaseInsensitive)) {
|
|| !QGuiApplication::platformName().compare(QLatin1String("minimal"), Qt::CaseInsensitive)
|
||||||
|
|| !QGuiApplication::platformName().compare(QLatin1String("winrt"), Qt::CaseInsensitive)) {
|
||||||
// Activate window of testFocusWidget, focus in that window goes to childFocusWidgetOne
|
// Activate window of testFocusWidget, focus in that window goes to childFocusWidgetOne
|
||||||
QWARN("Platforms offscreen and minimal require explicit activateWindow()");
|
QWARN("Platforms offscreen, minimal, and winrt require explicit activateWindow()");
|
||||||
testFocusWidget->activateWindow();
|
testFocusWidget->activateWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user