diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-12-01 18:33:45 -0300 |
---|---|---|
committer | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-12-01 18:55:38 -0300 |
commit | 0f8b230fd2dbc1c618ce8fcc84efa5d741ce1a0f (patch) | |
tree | 698d2e7cc8595683eab2b81ac547944358a3f4c6 /tests/libsample/objecttypelayout.h | |
parent | 95ee90a0c334b587860d4e54b7bf8c079379d7c6 (diff) |
Improved tests for the QLayout-like ObjectTypeLayout.
In the new test case an ObjectType uses a layout that contains another
layout, both created in C++, and then get deleted. Custom code was used
to achieve the correct parentship handling
Reviewed by Hugo Lima <hugo.lima@openbossa.org>
Diffstat (limited to 'tests/libsample/objecttypelayout.h')
-rw-r--r-- | tests/libsample/objecttypelayout.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/libsample/objecttypelayout.h b/tests/libsample/objecttypelayout.h index ba39fd330..5662ac339 100644 --- a/tests/libsample/objecttypelayout.h +++ b/tests/libsample/objecttypelayout.h @@ -48,6 +48,7 @@ public: std::list<ObjectType*> objects() const; virtual bool isLayoutType() { return true; } + static ObjectTypeLayout* create() { return new ObjectTypeLayout(); } private: std::list<ObjectType*> m_objects; |