qskinny/inputcontext/QskInputContextPlugin.cpp

25 lines
872 B
C++
Raw Normal View History

2018-02-06 14:55:35 +01:00
/******************************************************************************
* QSkinny - Copyright (C) 2016 Uwe Rathmann
* This file may be used under the terms of the QSkinny License, Version 1.0
*****************************************************************************/
2017-07-21 18:21:34 +02:00
#include <qpa/qplatforminputcontextplugin_p.h>
#include "QskInputContext.h"
class QskInputContextPlugin : public QPlatformInputContextPlugin
{
Q_OBJECT
Q_PLUGIN_METADATA(IID QPlatformInputContextFactoryInterface_iid FILE "metadata.json")
public:
QPlatformInputContext* create( const QString& system, const QStringList& params ) override
{
Q_UNUSED( params );
if ( system.compare( system, QLatin1String( "skinny" ), Qt::CaseInsensitive ) == 0 )
return new QskInputContext;
return nullptr;
}
};
#include "QskInputContextPlugin.moc"