Change-Id: I7eb283646b7529080c8c2f41c267b0135c8f57e4
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
--- /dev/null
+{
+ "Keys": [ "EvdevKeyboard" ]
+}
SOURCES = main.cpp \
qevdevkeyboardhandler.cpp \
qevdevkeyboardmanager.cpp
+
+OTHER_FILES += \
+ evdevkeyboard.json
class QEvdevKeyboardPlugin : public QGenericPlugin
{
+ Q_OBJECT
+ Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QGenericPluginFactoryInterface" FILE "evdevkeyboard.json")
+
public:
QEvdevKeyboardPlugin();
return 0;
}
-Q_EXPORT_PLUGIN2(qevdevkeyboardplugin, QEvdevKeyboardPlugin)
-
QT_END_NAMESPACE
+
+#include "main.moc"
--- /dev/null
+{
+ "Keys": [ "EvdevMouse" ]
+}
SOURCES = main.cpp \
qevdevmouse.cpp
+
+OTHER_FILES += \
+ evdevmouse.json
class QEvdevMousePlugin : public QGenericPlugin
{
+ Q_OBJECT
+ Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QGenericPluginFactoryInterface" FILE "evdevmouse.json")
+
public:
QEvdevMousePlugin();
return 0;
}
-Q_EXPORT_PLUGIN2(qevdevmouseplugin, QEvdevMousePlugin)
-
QT_END_NAMESPACE
+
+#include "main.moc"
--- /dev/null
+{
+ "Keys": [ "EvdevTouch" ]
+}
qevdevtouch.cpp
QT += core-private platformsupport-private
+
+OTHER_FILES += \
+ evdevtouch.json
class QTouchScreenPlugin : public QGenericPlugin
{
+ Q_OBJECT
+ Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QGenericPluginFactoryInterface" FILE "evdevtouch.json")
+
public:
QTouchScreenPlugin();
return 0;
}
-Q_EXPORT_PLUGIN2(qevdevtouchplugin, QTouchScreenPlugin)
-
QT_END_NAMESPACE
+
+#include "main.moc"