forked from qt-creator/qt-creator
ExtensionSystem: Remove Qt4 support
Remove usage of the Q_EXPORT_PLUGIN macros, which do not exist in Qt 5. Change-Id: I678c3cf10b9c5d5c1b9f252b0ecd1c97dc810a47 Reviewed-by: hjk <hjk121@nokiamail.com> Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
@@ -33,9 +33,7 @@
|
||||
#include "extensionsystem_global.h"
|
||||
|
||||
#include <QObject>
|
||||
#if QT_VERSION >= 0x050000
|
||||
# include <QtPlugin>
|
||||
#endif
|
||||
#include <QtPlugin>
|
||||
|
||||
namespace ExtensionSystem {
|
||||
|
||||
@@ -83,16 +81,4 @@ private:
|
||||
|
||||
} // namespace ExtensionSystem
|
||||
|
||||
// The macros Q_EXPORT_PLUGIN, Q_EXPORT_PLUGIN2 become obsolete in Qt 5.
|
||||
#if QT_VERSION >= 0x050000
|
||||
# if defined(Q_EXPORT_PLUGIN)
|
||||
# undef Q_EXPORT_PLUGIN
|
||||
# undef Q_EXPORT_PLUGIN2
|
||||
# endif
|
||||
# define Q_EXPORT_PLUGIN(plugin)
|
||||
# define Q_EXPORT_PLUGIN2(function, plugin)
|
||||
#else
|
||||
# define Q_PLUGIN_METADATA(x)
|
||||
#endif
|
||||
|
||||
#endif // IPLUGIN_H
|
||||
|
||||
Reference in New Issue
Block a user