summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBernd Weimer <bernd.weimer@pelagicore.com>2015-03-23 11:53:16 +0100
committerBernd Weimer <bernd.weimer@pelagicore.com>2015-08-25 07:04:19 +0000
commitb46fe39d940712c5d401e731e171a7ccfadfe648 (patch)
tree26d38ae1f51bc20bdaefa2220e885ed076d6b414 /tests
parent3accdb8086cca78fc006cfbe0d8b6eb66ebcc307 (diff)
Harmonize input context selection
Input context selection works differently across platforms. On some platforms it is not possible to request a specific context at all (e.g. Wayland). This will be unified, depending on the environment variable "QT_IM_MODULE", you will get: - null: default (platform) context, if defined (otherwise no context) - empty: no context - set: set one, if it exists and is valid (otherwise no context) [ChangeLog][Platform Specific Changes] Haromnized input context selection. QT_IM_MODULE environment variable will be taken into account. Change-Id: Ic8f826fbc6ace25941cd19b9b086943e848fbe01 Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com> Reviewed-by: Nedim Hadzic <nedim.hadzic@pelagicore.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/gui/kernel/qinputmethod/tst_qinputmethod.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/gui/kernel/qinputmethod/tst_qinputmethod.cpp b/tests/auto/gui/kernel/qinputmethod/tst_qinputmethod.cpp
index a36e31e2e2..ab17edecb6 100644
--- a/tests/auto/gui/kernel/qinputmethod/tst_qinputmethod.cpp
+++ b/tests/auto/gui/kernel/qinputmethod/tst_qinputmethod.cpp
@@ -292,6 +292,9 @@ void tst_qinputmethod::inputMethodAccepted()
if (qApp->platformName().toLower() == QLatin1String("wayland"))
QSKIP("Wayland: This fails. Figure out why.");
+ if (qApp->platformName().toLower() == QLatin1String("xcb"))
+ QSKIP("XCB: depends on dedicated platform context.");
+
InputItem disabledItem;
disabledItem.setEnabled(false);