fix metatype declaration in a few places

Change-Id: I76a12a278db8e74d935e76a5e832daf8e34df2a9
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
Nikita Baryshnikov
2015-07-24 16:48:04 +03:00
committed by Orgad Shaneh
parent e37b1bdfa4
commit 5398f4f5b1
8 changed files with 3 additions and 13 deletions

View File

@@ -53,6 +53,6 @@ public:
} // namespace BinEditor } // namespace BinEditor
Q_DECLARE_METATYPE(QList<BinEditor::Markup>) Q_DECLARE_METATYPE(BinEditor::Markup)
#endif // MARKUP_H #endif // MARKUP_H

View File

@@ -191,7 +191,7 @@ void DiffEditorPlugin::diff()
#include "diffutils.h" #include "diffutils.h"
Q_DECLARE_METATYPE(DiffEditor::ChunkData) Q_DECLARE_METATYPE(DiffEditor::ChunkData)
Q_DECLARE_METATYPE(QList<DiffEditor::FileData>) Q_DECLARE_METATYPE(DiffEditor::FileData)
static inline QString _(const char *string) { return QString::fromLatin1(string); } static inline QString _(const char *string) { return QString::fromLatin1(string); }

View File

@@ -50,8 +50,6 @@ using namespace Core;
using namespace Help; using namespace Help;
using namespace Help::Internal; using namespace Help::Internal;
Q_DECLARE_METATYPE(ILocatorFilter*)
HelpIndexFilter::HelpIndexFilter() HelpIndexFilter::HelpIndexFilter()
: m_needsUpdate(true) : m_needsUpdate(true)
{ {

View File

@@ -215,6 +215,5 @@ QMLDESIGNERCORE_EXPORT QTextStream& operator<<(QTextStream &stream, const ModelN
} }
Q_DECLARE_METATYPE(QmlDesigner::ModelNode) Q_DECLARE_METATYPE(QmlDesigner::ModelNode)
Q_DECLARE_METATYPE(QList<QmlDesigner::ModelNode>)
#endif // MODELNODE_H #endif // MODELNODE_H

View File

@@ -49,8 +49,6 @@
using namespace TextEditor; using namespace TextEditor;
Q_DECLARE_METATYPE(TextEditor::ICodeStylePreferences *)
namespace TextEditor { namespace TextEditor {
namespace Internal { namespace Internal {

View File

@@ -42,8 +42,6 @@ const char UCMANGLER_ID[] = "TextEditor::UppercaseMangler";
const char LCMANGLER_ID[] = "TextEditor::LowercaseMangler"; const char LCMANGLER_ID[] = "TextEditor::LowercaseMangler";
const char TCMANGLER_ID[] = "TextEditor::TitlecaseMangler"; const char TCMANGLER_ID[] = "TextEditor::TitlecaseMangler";
Q_DECLARE_METATYPE(QList<int>)
// -------------------------------------------------------------------- // --------------------------------------------------------------------
// Manglers: // Manglers:
// -------------------------------------------------------------------- // --------------------------------------------------------------------

View File

@@ -37,8 +37,7 @@
#include <diffeditor/differ.h> #include <diffeditor/differ.h>
Q_DECLARE_METATYPE(DiffEditor::Diff); Q_DECLARE_METATYPE(DiffEditor::Diff)
Q_DECLARE_METATYPE(QList<DiffEditor::Diff>);
using namespace DiffEditor; using namespace DiffEditor;

View File

@@ -48,8 +48,6 @@ using namespace TextEditor;
using namespace Internal; using namespace Internal;
Q_DECLARE_METATYPE(HighlightSequence) Q_DECLARE_METATYPE(HighlightSequence)
Q_DECLARE_METATYPE(QList<int>)
Q_DECLARE_METATYPE(QList<HighlightSequence>)
//TESTED_COMPONENT=src/plugins/texteditor/generichighlighter //TESTED_COMPONENT=src/plugins/texteditor/generichighlighter