From 3b3178b9e2bb998fffdf73f867910c7ec3152720 Mon Sep 17 00:00:00 2001 From: Aaron McCarthy Date: Wed, 7 Jan 2015 15:08:47 +1000 Subject: [PATCH] [connectionagent] Remove unused Qt 4/5 ifdefs Support for Qt 4 was removed, remove left over ifdefs. --- connd/qconnectionagent.cpp | 12 ----------- .../connectionagentplugin_plugin.cpp | 4 ---- .../connectionagentplugin_plugin.h | 20 +++++-------------- 3 files changed, 5 insertions(+), 31 deletions(-) diff --git a/connd/qconnectionagent.cpp b/connd/qconnectionagent.cpp index edd5af8..c82a43a 100644 --- a/connd/qconnectionagent.cpp +++ b/connd/qconnectionagent.cpp @@ -18,7 +18,6 @@ #include "connectiond_adaptor.h" #include "wakeupwatcher.h" -#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) #include #include #include @@ -29,17 +28,6 @@ #include #include -#else -#include -#include -#include -#include -#include -#include -#include -#include -#endif - #include #include diff --git a/connectionagentplugin/connectionagentplugin_plugin.cpp b/connectionagentplugin/connectionagentplugin_plugin.cpp index 71718fc..2bb15f0 100644 --- a/connectionagentplugin/connectionagentplugin_plugin.cpp +++ b/connectionagentplugin/connectionagentplugin_plugin.cpp @@ -57,7 +57,3 @@ void ConnectionagentpluginPlugin::registerTypes(const char *uri) // @uri com.jolla.connection qmlRegisterType(uri, 1, 0, "ConnectionAgent"); } - -#if QT_VERSION < 0x050000 -Q_EXPORT_PLUGIN2(Connectionagentplugin, ConnectionagentpluginPlugin) -#endif diff --git a/connectionagentplugin/connectionagentplugin_plugin.h b/connectionagentplugin/connectionagentplugin_plugin.h index add95b1..bfba5c1 100644 --- a/connectionagentplugin/connectionagentplugin_plugin.h +++ b/connectionagentplugin/connectionagentplugin_plugin.h @@ -18,25 +18,15 @@ #define CONNECTIONAGENTPLUGIN_PLUGIN_H #include -#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) -# include -# include -# include -# define QDeclarativeEngine QQmlEngine -# define QDeclarativeExtensionPlugin QQmlExtensionPlugin -#else -# include -# include -# include -#endif +#include +#include +#include -class ConnectionagentpluginPlugin : public QDeclarativeExtensionPlugin +class ConnectionagentpluginPlugin : public QQmlExtensionPlugin { Q_OBJECT -#if QT_VERSION >= 0x050000 Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface") -#endif - + public: void registerTypes(const char *uri);