Convert xlib plugin to new format
Change-Id: I00418a1eb7bf944ec360dbbb1f61f7703f3ecd37 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
parent
cff24b9fd5
commit
a5c1ffedb8
@ -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"
|
||||
|
3
src/plugins/platforms/xlib/xlib.json
Normal file
3
src/plugins/platforms/xlib/xlib.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"Keys": [ "xlib" ]
|
||||
}
|
@ -32,6 +32,8 @@ HEADERS = \
|
||||
qxlibdisplay.h \
|
||||
qxlibnativeinterface.h
|
||||
|
||||
OTHER_FILES += xlib.json
|
||||
|
||||
LIBS += -lX11 -lXext
|
||||
|
||||
mac {
|
||||
|
Loading…
Reference in New Issue
Block a user