aboutsummaryrefslogtreecommitdiffstats
path: root/tests/libsample/objecttype.h
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2009-11-30 17:20:34 -0200
committerHugo Lima <hugo.lima@openbossa.org>2009-11-30 17:31:55 -0200
commitfe71552f4f254d84f2563ee24f108f5dd2c559c6 (patch)
treed30b5c8248b564ba2f6cfc8cd4e83e350930459c /tests/libsample/objecttype.h
parentfdd64b248fb7bf6c6da3d3785e1ce2ec8d26bdbb (diff)
Added tests for something like QLayout.
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
Diffstat (limited to 'tests/libsample/objecttype.h')
-rw-r--r--tests/libsample/objecttype.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/libsample/objecttype.h b/tests/libsample/objecttype.h
index 7ed9c5e04..4435ab6c4 100644
--- a/tests/libsample/objecttype.h
+++ b/tests/libsample/objecttype.h
@@ -54,10 +54,13 @@ private:
EventType m_eventType;
};
+class ObjectTypeLayout;
+class ObjectType;
+typedef std::list<ObjectType*> ObjectTypeList;
+
class LIBSAMPLE_API ObjectType
{
public:
- typedef std::list<ObjectType*> ObjectTypeList;
ObjectType(ObjectType* parent = 0);
virtual ~ObjectType();
@@ -78,6 +81,9 @@ public:
// Returns true if the event is processed.
virtual bool event(Event* event);
+ // This nonsense method emulate QWidget.setLayout method
+ // All layout objects will became children of this object.
+ void setObjectLayout(ObjectTypeLayout* layout);
private:
ObjectType(const ObjectType&);