~timo-jyrinki/ubuntu/trusty/maliit-framework/fix_qt52

« back to all changes in this revision

Viewing changes to .pc/0001-rename_input_context.patch/input-context/main.cpp

  • Committer: Package Import Robot
  • Author(s): Ricardo Salveti de Araujo, Sergio Schvezov, Ricardo Salveti de Araujo
  • Date: 2013-07-23 19:47:04 UTC
  • mfrom: (1.1.2) (1.2.1 experimental)
  • Revision ID: package-import@ubuntu.com-20130723194704-1lsy1kmlda069cea
Tags: 0.99.0+git20130615+97e8335-0ubuntu1
[ Sergio Schvezov ]
* New build from HEAD 97e8335.
* Packaging import from lp:phablet-extras/maliit-framework.

[ Ricardo Salveti de Araujo ]
* debian/control: adding vcs and fixing dependencies
* General package cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* * This file is part of Maliit framework *
 
2
 *
 
3
 * Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
 
4
 *
 
5
 * All rights reserved.
 
6
 *
 
7
 * Contact: maliit-discuss@lists.maliit.org
 
8
 *
 
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
 
13
 * of this file.
 
14
 */
 
15
 
 
16
#include <qpa/qplatforminputcontextplugin_p.h>
 
17
#include <QtCore/QStringList>
 
18
#include <QDebug>
 
19
 
 
20
#include "minputcontext.h"
 
21
 
 
22
class MaliitPlatformInputContextPlugin: public QPlatformInputContextPlugin
 
23
{
 
24
    Q_OBJECT
 
25
    Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QPlatformInputContextFactoryInterface" FILE "maliit.json")
 
26
 
 
27
public:
 
28
    QPlatformInputContext *create(const QString&, const QStringList&);
 
29
};
 
30
 
 
31
QPlatformInputContext *MaliitPlatformInputContextPlugin::create(const QString &system, const QStringList &paramList)
 
32
{
 
33
    Q_UNUSED(paramList);
 
34
 
 
35
    if (system.compare(system, QStringLiteral("maliit"), Qt::CaseInsensitive) == 0) {
 
36
        return new MInputContext;
 
37
    }
 
38
    return 0;
 
39
}
 
40
 
 
41
#include "main.moc"