aboutsummaryrefslogtreecommitdiffstats
path: root/tests/libsample/objecttypelayout.cpp
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/objecttypelayout.cpp
parentfdd64b248fb7bf6c6da3d3785e1ce2ec8d26bdbb (diff)
Added tests for something like QLayout.
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
Diffstat (limited to 'tests/libsample/objecttypelayout.cpp')
-rw-r--r--tests/libsample/objecttypelayout.cpp45
1 files changed, 45 insertions, 0 deletions
diff --git a/tests/libsample/objecttypelayout.cpp b/tests/libsample/objecttypelayout.cpp
new file mode 100644
index 000000000..06c4555b4
--- /dev/null
+++ b/tests/libsample/objecttypelayout.cpp
@@ -0,0 +1,45 @@
+/*
+* This file is part of the Shiboken Python Binding Generator project.
+*
+* Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
+*
+* Contact: PySide team <contact@pyside.org>
+*
+* This program is free software; you can redistribute it and/or
+* modify it under the terms of the GNU Lesser General Public License
+* version 2.1 as published by the Free Software Foundation. Please
+* review the following information to ensure the GNU Lesser General
+* Public License version 2.1 requirements will be met:
+* http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+*
+* As a special exception to the GNU Lesser General Public License
+* version 2.1, the object code form of a "work that uses the Library"
+* may incorporate material from a header file that is part of the
+* Library. You may distribute such object code under terms of your
+* choice, provided that the incorporated material (i) does not exceed
+* more than 5% of the total size of the Library; and (ii) is limited to
+* numerical parameters, data structure layouts, accessors, macros,
+* inline functions and templates.
+*
+* This program is distributed in the hope that it will be useful, but
+* WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this program; if not, write to the Free Software
+* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA
+*/
+
+#include "objecttypelayout.h"
+
+void ObjectTypeLayout::addObject(ObjectType* obj)
+{
+ m_objects.push_back(obj);
+}
+
+std::list< ObjectType* > ObjectTypeLayout::objects() const
+{
+ return m_objects;
+}