diff options
author | Hugo Lima <hugo.lima@openbossa.org> | 2009-11-30 17:20:34 -0200 |
---|---|---|
committer | Hugo Lima <hugo.lima@openbossa.org> | 2009-11-30 17:31:55 -0200 |
commit | fe71552f4f254d84f2563ee24f108f5dd2c559c6 (patch) | |
tree | d30b5c8248b564ba2f6cfc8cd4e83e350930459c /tests/libsample/objecttype.cpp | |
parent | fdd64b248fb7bf6c6da3d3785e1ce2ec8d26bdbb (diff) |
Added tests for something like QLayout.
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
Diffstat (limited to 'tests/libsample/objecttype.cpp')
-rw-r--r-- | tests/libsample/objecttype.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/libsample/objecttype.cpp b/tests/libsample/objecttype.cpp index 867d61cce..ef72f11fe 100644 --- a/tests/libsample/objecttype.cpp +++ b/tests/libsample/objecttype.cpp @@ -33,6 +33,7 @@ */ #include "objecttype.h" +#include "objecttypelayout.h" #include <algorithm> using namespace std; @@ -116,3 +117,12 @@ ObjectType::event(Event* event) return true; } +void ObjectType::setObjectLayout(ObjectTypeLayout* layout) +{ + layout->setParent(this); + std::list<ObjectType*> objects = layout->objects(); + std::list<ObjectType*>::const_iterator it = objects.begin(); + for (; it != objects.end(); ++it) + (*it)->setParent(this); +} + |