Port to Qt 5 plugin system.

This commit is contained in:
Felix Geyer 2015-07-22 17:32:06 +02:00
parent 208b0f39e6
commit 9e05f41747
4 changed files with 2 additions and 4 deletions

View file

@ -117,5 +117,3 @@ void AutoTypeExecturorTest::execKey(AutoTypeKey* action)
{ {
m_platform->addActionKey(action); m_platform->addActionKey(action);
} }
Q_EXPORT_PLUGIN2(keepassx-autotype-test, AutoTypePlatformTest)

View file

@ -30,6 +30,7 @@ class AutoTypePlatformTest : public QObject,
public AutoTypeTestInterface public AutoTypeTestInterface
{ {
Q_OBJECT Q_OBJECT
Q_PLUGIN_METADATA(IID "org.keepassx.AutoTypePlatformInterface")
Q_INTERFACES(AutoTypePlatformInterface AutoTypeTestInterface) Q_INTERFACES(AutoTypePlatformInterface AutoTypeTestInterface)
public: public:

View file

@ -769,5 +769,3 @@ int AutoTypePlatformX11::initialTimeout()
{ {
return 500; return 500;
} }
Q_EXPORT_PLUGIN2(keepassx-autotype-x11, AutoTypePlatformX11)

View file

@ -38,6 +38,7 @@
class AutoTypePlatformX11 : public QObject, public AutoTypePlatformInterface class AutoTypePlatformX11 : public QObject, public AutoTypePlatformInterface
{ {
Q_OBJECT Q_OBJECT
Q_PLUGIN_METADATA(IID "org.keepassx.AutoTypePlatformX11")
Q_INTERFACES(AutoTypePlatformInterface) Q_INTERFACES(AutoTypePlatformInterface)
public: public: