Specialize QTypeInfo for QUrlTwoFlags to mark it PRIMITIVE.

QTypeInfoMerger combines the typeinfos for the (PRIMITIVE) flag arguments.

Change-Id: I5abf00489491d099f2bf7ba25c191a771a383d78
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
This commit is contained in:
Stephen Kelly 2012-07-25 17:17:14 +02:00 committed by Qt by Nokia
parent bb0ef1cc5b
commit 339dc331fd

View File

@ -113,6 +113,9 @@ public:
inline bool testFlag(E2 f) const { return (i & f) == f && (f != 0 || i == int(f)); }
};
template<typename E1, typename E2>
class QTypeInfo<QUrlTwoFlags<E1, E2> > : public QTypeInfoMerger<QUrlTwoFlags<E1, E2>, E1, E2> {};
class Q_CORE_EXPORT QUrl
{
public: