aboutsummaryrefslogtreecommitdiffstats
path: root/tests/libsample
diff options
context:
space:
mode:
authorJohn Ehresman <jpe@wingware.com>2013-05-27 21:53:02 -0400
committerJohn Cummings <jcummings2@users.sf.net>2013-06-13 17:02:44 +0200
commit709f98d254efde9f98476913e79ea02fd88cd7c2 (patch)
tree729ec10d0efa832a2d0da17e32d164e68c21cd57 /tests/libsample
parent45268bd0ad5a6569adad2e529574d7bf536d0bff (diff)
Prevent infinite recursion in invalidate
Change-Id: I8946a8572b608bf8ede211d270f797f135f8083a Reviewed-by: John Cummings <jcummings2@users.sf.net>
Diffstat (limited to 'tests/libsample')
-rw-r--r--tests/libsample/objecttype.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/libsample/objecttype.h b/tests/libsample/objecttype.h
index 18c5038a7..6c6b5ecbe 100644
--- a/tests/libsample/objecttype.h
+++ b/tests/libsample/objecttype.h
@@ -125,6 +125,10 @@ public:
//Deprecated test
bool deprecatedFunction() { return true; }
+ // nextInFocusChain simply returns the parent to test object cycles; the parent
+ // may be returned by the QWidget's implementation but isn't always returned
+ ObjectType* nextInFocusChain() { return m_parent; }
+
private:
ObjectType(const ObjectType&);
ObjectType& operator=(const ObjectType&);