Core: Move Q_DECLARE_METATYPE for IEditor to ieditor.h

Fixes a gcc warning about different visibility of struct in files.

Reviewed-by: con
This commit is contained in:
Kai Koehne
2010-12-06 09:47:43 +01:00
parent 48c2dccd75
commit f7fecfa07c
9 changed files with 4 additions and 15 deletions

View File

@@ -80,8 +80,6 @@
#include <QtGui/QSplitter>
#include <QtGui/QStackedLayout>
Q_DECLARE_METATYPE(Core::IEditor*)
enum { debugEditorManager=0 };
static inline ExtensionSystem::PluginManager *pluginManager()

View File

@@ -66,8 +66,6 @@
#include <qmacstyle_mac.h>
#endif
Q_DECLARE_METATYPE(Core::IEditor *)
using namespace Core;
using namespace Core::Internal;

View File

@@ -32,6 +32,7 @@
#include <coreplugin/core_global.h>
#include <coreplugin/icontext.h>
#include <QtCore/QMetaType>
namespace Core {
@@ -74,4 +75,6 @@ signals:
} // namespace Core
Q_DECLARE_METATYPE(Core::IEditor*)
#endif // IEDITOR_H

View File

@@ -34,8 +34,6 @@
#include <QtCore/QDir>
#include <QtGui/QIcon>
Q_DECLARE_METATYPE(Core::IEditor*)
namespace Core {
struct OpenEditorsModelPrivate {

View File

@@ -34,6 +34,7 @@
#include "icore.h"
#include <coreplugin/coreconstants.h>
#include <coreplugin/editormanager/ieditor.h>
#include <coreplugin/filemanager.h>
#include <coreplugin/uniqueidmanager.h>
#include <coreplugin/actionmanager/actionmanager.h>
@@ -50,8 +51,6 @@
#include <qmacstyle_mac.h>
#endif
Q_DECLARE_METATYPE(Core::IEditor*)
using namespace Core;
using namespace Core::Internal;

View File

@@ -63,8 +63,6 @@
#include <QtGui/QLabel>
#include <QtGui/QToolBar>
Q_DECLARE_METATYPE(Core::IEditor*)
enum {
debug = false
};

View File

@@ -50,7 +50,6 @@ Q_DECLARE_METATYPE(Core::MessageManager*)
Q_DECLARE_METATYPE(Core::FileManager*)
Q_DECLARE_METATYPE(Core::IFile*)
Q_DECLARE_METATYPE(QList<Core::IFile*>)
Q_DECLARE_METATYPE(Core::IEditor*)
Q_DECLARE_METATYPE(QList<Core::IEditor*>)
Q_DECLARE_METATYPE(Core::EditorGroup*)
Q_DECLARE_METATYPE(QList<Core::EditorGroup*>)

View File

@@ -32,8 +32,6 @@
#include <coreplugin/editormanager/editormanager.h>
#include <coreplugin/editormanager/ieditor.h>
Q_DECLARE_METATYPE(Core::IEditor*);
using namespace Core;
using namespace Locator;
using namespace Locator::Internal;

View File

@@ -72,8 +72,6 @@ using Core::EditorManager;
using namespace QmlDesigner;
Q_DECLARE_METATYPE(Core::IEditor*)
enum {
debug = false
};