59b516a118
The 3rdparty files are now compiled as part of the corresponding input method, so that the project files can be written without using platform specific linker flags.
25 lines
874 B
C++
25 lines
874 B
C++
/******************************************************************************
|
|
* QSkinny - Copyright (C) 2016 Uwe Rathmann
|
|
* This file may be used under the terms of the QSkinny License, Version 1.0
|
|
*****************************************************************************/
|
|
|
|
#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"
|