diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2011-10-26 14:37:28 -0200 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:56:14 -0300 |
commit | 07d08797000e52ce2d6e74f9b8a576e14abf1cbd (patch) | |
tree | 94dfc02e9484d487ae402b536c5d635baaa3415d | |
parent | 2e1ff21938a1513e95d9d7c6bcfdba79b3ee74cd (diff) |
Fix code style and add license headers.
-rw-r--r-- | tests/pysidetest/testobject.cpp | 38 | ||||
-rw-r--r-- | tests/pysidetest/testobject.h | 22 |
2 files changed, 49 insertions, 11 deletions
diff --git a/tests/pysidetest/testobject.cpp b/tests/pysidetest/testobject.cpp index 113075047..098890110 100644 --- a/tests/pysidetest/testobject.cpp +++ b/tests/pysidetest/testobject.cpp @@ -1,32 +1,48 @@ +/* + * This file is part of the PySide project. + * + * Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). + * + * Contact: PySide team <contact@pyside.org> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + #include "testobject.h" -void -TestObject::emitIdValueSignal() +void TestObject::emitIdValueSignal() { emit idValue(m_idValue); } -void -TestObject::emitStaticMethodDoubleSignal() +void TestObject::emitStaticMethodDoubleSignal() { emit staticMethodDouble(); } -void -TestObject::emitSignalWithDefaultValue_void() +void TestObject::emitSignalWithDefaultValue_void() { emit signalWithDefaultValue(); } -void -TestObject::emitSignalWithDefaultValue_bool() +void TestObject::emitSignalWithDefaultValue_bool() { emit signalWithDefaultValue(true); } -void -TestObject::emitSignalWithTypedefValue(int value) +void TestObject::emitSignalWithTypedefValue(int value) { emit signalWithTypedefValue(TypedefValue(value)); } - diff --git a/tests/pysidetest/testobject.h b/tests/pysidetest/testobject.h index e37bca8de..71e37163c 100644 --- a/tests/pysidetest/testobject.h +++ b/tests/pysidetest/testobject.h @@ -1,3 +1,25 @@ +/* + * This file is part of the PySide project. + * + * Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). + * + * Contact: PySide team <contact@pyside.org> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + #ifndef TESTOBJECT_H #define TESTOBJECT_H |