tests: skip tst_QComboBox::cancelClosesPopupNotDialog() on Wayland
QWindow::requestActivate() is not supported. This amends c95de359b4fe7bc03f7defdb057ebbe79c51b3dd. Task-number: QTBUG-107153 Change-Id: I45f53b5e9de85049ca41cc139a78a82450f53bed Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> (cherry picked from commit f09f516ac149a723d3b00b8ecc746c12eb970465) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
6a0336c48b
commit
420b8c0169
@ -8,6 +8,7 @@
|
|||||||
#include "qcombobox.h"
|
#include "qcombobox.h"
|
||||||
#include <private/qcombobox_p.h>
|
#include <private/qcombobox_p.h>
|
||||||
#include <private/qguiapplication_p.h>
|
#include <private/qguiapplication_p.h>
|
||||||
|
#include <qpa/qplatformintegration.h>
|
||||||
#include <qpa/qplatformtheme.h>
|
#include <qpa/qplatformtheme.h>
|
||||||
|
|
||||||
#include <qfontcombobox.h>
|
#include <qfontcombobox.h>
|
||||||
@ -3633,6 +3634,9 @@ void tst_QComboBox::cancelClosesPopupNotDialog()
|
|||||||
if (QGuiApplication::platformName() == "offscreen")
|
if (QGuiApplication::platformName() == "offscreen")
|
||||||
QSKIP("The offscreen platform plugin doesn't activate popups.");
|
QSKIP("The offscreen platform plugin doesn't activate popups.");
|
||||||
|
|
||||||
|
if (!QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::WindowActivation))
|
||||||
|
QSKIP("QWindow::requestActivate() is not supported.");
|
||||||
|
|
||||||
QDialog dialog;
|
QDialog dialog;
|
||||||
QComboBox combobox;
|
QComboBox combobox;
|
||||||
combobox.addItems({"A", "B", "C"});
|
combobox.addItems({"A", "B", "C"});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user