From 96ee6860163bba1e86b032c9c66cb893c666770a Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Wed, 13 Nov 2013 13:31:46 +0100 Subject: Make comparison of singletons and qobjects work Otherwise you can end up with some weird situation in which you have two objects, you print them and then you print the comparison and get a Foo(0x858480) b Foo(0x858480) a == b false Task-number: QTBUG-34651 Change-Id: Id2444d919f039be085eb5ed9112345db691540a5 Reviewed-by: Lars Knoll --- src/qml/qml/qqmltypewrapper_p.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/qml/qml/qqmltypewrapper_p.h') diff --git a/src/qml/qml/qqmltypewrapper_p.h b/src/qml/qml/qqmltypewrapper_p.h index 89f31d675a..ee462d6479 100644 --- a/src/qml/qml/qqmltypewrapper_p.h +++ b/src/qml/qml/qqmltypewrapper_p.h @@ -89,6 +89,9 @@ public: static PropertyAttributes query(const Managed *, StringRef name); static void destroy(Managed *that); +protected: + static bool isEqualTo(Managed *that, Managed *o); + private: QV8Engine *v8; TypeNameMode mode; -- cgit v1.2.3