1
/* * This file is part of Maliit framework *
3
* Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
7
* Contact: maliit-discuss@lists.maliit.org
9
* This library is free software; you can redistribute it and/or
10
* modify it under the terms of the GNU Lesser General Public
11
* License version 2.1 as published by the Free Software Foundation
12
* and appearing in the file LICENSE.LGPL included in the packaging
16
#include <qpa/qplatforminputcontextplugin_p.h>
17
#include <QtCore/QStringList>
20
#include "minputcontext.h"
22
class MaliitPlatformInputContextPlugin: public QPlatformInputContextPlugin
25
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QPlatformInputContextFactoryInterface" FILE "maliit.json")
28
QPlatformInputContext *create(const QString&, const QStringList&);
31
QPlatformInputContext *MaliitPlatformInputContextPlugin::create(const QString &system, const QStringList ¶mList)
35
if (system.compare(system, QStringLiteral("maliit"), Qt::CaseInsensitive) == 0) {
36
return new MInputContext;