Move Q_DECLARE_OPERATORS_FOR_FLAGS out of namespaces.

If this macro is used inside a namespace, it hides global operators.

Reviewed-by: hjk
This commit is contained in:
ck
2010-01-07 13:53:48 +01:00
parent 9a0baca9a5
commit dedea5ea19
2 changed files with 3 additions and 4 deletions

View File

@@ -134,11 +134,10 @@ private:
bool separateScope;
};
Q_DECLARE_OPERATORS_FOR_FLAGS(SearchSymbols::SymbolTypes)
} // namespace Internal
} // namespace CppTools
Q_DECLARE_OPERATORS_FOR_FLAGS(CppTools::Internal::SearchSymbols::SymbolTypes)
Q_DECLARE_METATYPE(CppTools::Internal::ModelItemInfo)
#endif // SEARCHSYMBOLS_H