Convert xlib plugin to new format

Change-Id: I00418a1eb7bf944ec360dbbb1f61f7703f3ecd37
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
Debao Zhang 2012-03-10 16:17:27 -08:00 committed by Qt by Nokia
parent cff24b9fd5
commit a5c1ffedb8
3 changed files with 9 additions and 2 deletions

View File

@ -46,6 +46,8 @@ QT_BEGIN_NAMESPACE
class QXlibIntegrationPlugin : public QPlatformIntegrationPlugin
{
Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QPlatformIntegrationFactoryInterface" FILE "xlib.json")
public:
QStringList keys() const;
QPlatformIntegration *create(const QString&, const QStringList&);
@ -67,6 +69,6 @@ QPlatformIntegration* QXlibIntegrationPlugin::create(const QString& system, cons
return 0;
}
Q_EXPORT_PLUGIN2(xlib, QXlibIntegrationPlugin)
QT_END_NAMESPACE
#include "main.moc"

View File

@ -0,0 +1,3 @@
{
"Keys": [ "xlib" ]
}

View File

@ -32,6 +32,8 @@ HEADERS = \
qxlibdisplay.h \
qxlibnativeinterface.h
OTHER_FILES += xlib.json
LIBS += -lX11 -lXext
mac {