Pretend the X11 "compose" platform input context plugin to be "xim" too

This is for compatibility with old Qt versions that had this.

Task-number: QTBUG-48360
Change-Id: I42e7ef1a481840699a8dffff1405c0a348e32e27
Reviewed-by: Gatis Paeglis <gatis.paeglis@digia.com>
This commit is contained in:
Thiago Macieira 2015-09-20 10:44:23 -07:00
parent 05d401104e
commit c0a3515d8d
2 changed files with 3 additions and 2 deletions

View File

@ -1,3 +1,3 @@
{
"Keys": [ "compose" ]
"Keys": [ "compose", "xim" ]
}

View File

@ -52,7 +52,8 @@ QComposeInputContext *QComposePlatformInputContextPlugin::create(const QString &
{
Q_UNUSED(paramList);
if (system.compare(system, QLatin1String("compose"), Qt::CaseInsensitive) == 0)
if (system.compare(system, QLatin1String("compose"), Qt::CaseInsensitive) == 0
|| system.compare(system, QLatin1String("xim"), Qt::CaseInsensitive) == 0)
return new QComposeInputContext;
return 0;
}