aboutsummaryrefslogtreecommitdiffstats
path: root/tests/libsample/objecttype.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/libsample/objecttype.cpp')
-rw-r--r--tests/libsample/objecttype.cpp10
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);
+}
+