Fixed compile of tst_qdeclarativelistcompositor with -qtnamespace.
authorRohan McGovern <rohan.mcgovern@nokia.com>
Mon, 21 Nov 2011 03:02:48 +0000 (13:02 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 21 Nov 2011 05:16:43 +0000 (06:16 +0100)
This operator== must be in the Qt namespace.

Change-Id: I28cece2b5f54efc3b2b5aed2ef675ff1b6056370
Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>

tests/auto/declarative/qdeclarativelistcompositor/tst_qdeclarativelistcompositor.cpp

index 425f35c..b3b3aaa 100644 (file)
@@ -85,6 +85,7 @@ Q_DECLARE_METATYPE(IndexArray)
 Q_DECLARE_METATYPE(ListArray)
 Q_DECLARE_METATYPE(C::Group)
 
+QT_BEGIN_NAMESPACE
 bool operator ==(const C::Change &left, const C::Change &right)
 {
     return left.index[3] == right.index[3]
@@ -96,6 +97,7 @@ bool operator ==(const C::Change &left, const C::Change &right)
             && left.inCache() == right.inCache()
             && (left.moveId == -1) == (right.moveId == -1);
 }
+QT_END_NAMESPACE
 
 static const C::Group Visible = C::Group(2);
 static const C::Group Selection = C::Group(3);