Commit graph

28 commits

Author SHA1 Message Date
Renato Filho
1f013e75e3 Created unit test to QKeySequence convertion to QVariant.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
          Hugo Parente Lima <hugo.pl@gmail.com>
2011-04-26 10:07:31 -03:00
Renato Filho
c8a11c179a Create unit test for bug #816.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
          Hugo Parente Lima <hugo.pl@gmail.com>
2011-04-12 16:47:08 -03:00
Hugo Parente Lima
2f4a1f634c Use set instead of add on reference-count action attribute. 2011-03-23 13:36:17 -03:00
Renato Araujo Oliveira Filho
90178e21dd Created unit test for signals.
Test for types inside of namespace
Test for types defined by typedef.

Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
          Luciano Wolf <luciano.wolf@openbossa.org>
2011-02-07 17:33:20 -03:00
Marcelo Lira
2f6af8142d The global header for PySide is now installed with the libpyside headers.
This is good for PySide derived bindings (like the ones for QtMobility),
so they don't need to copy the PySide global headers to their source
tree and end up with an outdated file.

Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
2011-02-04 18:07:51 -03:00
Marcelo Lira
233c0333e6 Removed unnecessary line from test binding CMake file. 2011-02-04 16:09:27 -03:00
Marcelo Lira
f2c537eeaa Updated GeneratorRunner calls on CMake files to use "--generator-set" instead of "--generatorSet".
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
Reviewed by Renato Araújo <renato.filho@openbossa.org>
2011-01-31 14:54:10 -03:00
Marcelo Lira
bcba2a3b32 Added test cases for signal emission.
Signals are emitted from C++ and Python.

Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
          Lauro Moura <lauro.neto@openbossa.org>
2011-01-21 13:41:26 -03:00
Hugo Parente Lima
7f533799d4 Use the same Python used by Shiboken instead of find a new one. 2011-01-20 15:17:34 -02:00
Marcelo Lira
a1cf8f03b2 Fixes connecting signal to decorated slot.
Decorated methods on classes derived from QObject are not called when
connected to Qt signals because they get a name different from the
decorated method. To solve this decorated methods are registered as
global slots.

An unit test was added.

Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Reviewed by Renato Araújo <renato.filho@openbossa.org>
2011-01-06 19:08:40 -03:00
Renato Araujo Oliveira Filho
ecbc9ebcfa Appended QtGui library dependency on pysidetest library. 2010-12-28 14:09:16 -03:00
Renato Araujo Oliveira Filho
fc471bed0f Used more common signature on function test to QList objects.
Replaced "const QList<QObject*>" signature to "const QList<QObject*>&",
more used on Qt code.
2010-12-23 15:47:59 -03:00
Lauro Neto
af0860ba4a Fix testbinding dependency
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Reviewer: Renato Araujo <renato.araujo@openbossa.org>
2010-12-22 18:11:26 -03:00
Renato Araujo Oliveira Filho
c4185280ba Moved list_signal_test to pysidetest library.
This isolate the test case, and avoid other problems with X during the
buildbot compilation.

Reviewer: Lauro Moura <lauro.neto@openbossa.org>
          Hugo Parente Lima <hugo.pl@gmail.com>
2010-12-22 16:34:29 -03:00
Marcelo Lira
14a5405837 Fixes bug #502.
The ownership of the editor returned by the Python override of
QAbstractItemDelegate.createEditor(...) is now transferred to C++.

A test was added to simulate the situation that triggers the bug,
instead of relying on an example with a view, model and editable cells.

See: http://bugs.openbossa.org/show_bug.cgi?id=502

Reviewed by Lauro Moura <lauro.neto@openbossa.org>
Reviewed by Renato Araújo <renato.filho@openbossa.org>
2010-12-20 17:54:09 -03:00
Marcelo Lira
fbc06244e0 Fixed type system for TestView from pysidetest directory. 2010-12-20 17:47:01 -03:00
Hugo Parente Lima
dd1184ac4d Use .pyd extension for pysidetest module on Windows. 2010-12-17 19:16:56 -02:00
Hugo Parente Lima
53e472c5ef Fix compilation under MS Windows. 2010-12-17 19:16:56 -02:00
Marcelo Lira
ca914c9f63 Added a call to QObject.metaObject() to check if a segfault is caused.
This completes the tests for bug #507[1].

Also removed an unnecessary commented line.

[1] http://bugs.openbossa.org/show_bug.cgi?id=507

Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Reviewed by Renato Araújo <renato.filho@openbossa.org>
2010-12-17 13:59:51 -03:00
Marcelo Lira
d3e5c54d8a Updated model/view test to follow changes in Shiboken/9459b9da commit.
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Reviewed by Lauro Moura <lauro.neto@openbossa.org>
2010-12-17 11:31:37 -03:00
Marcelo Lira
c53ec3c17e Updated the PySide test related to Python model returning data to C++. 2010-12-15 19:20:56 -03:00
Marcelo Lira
6b720050ef Added test for Python written models returning new objects without keeping reference to them.
Reviewed by Lauro Moura <lauro.neto@openbossa.org>
eviewed by Luciano Wolf <luciano.wolf@openbossa.org>
2010-12-13 17:55:54 -03:00
Hugo Parente Lima
dadd07ccd7 Fix compilation on Windows.
Reviewer: Renato Araújo <renato.filho@openbossa.org>
2010-11-25 16:02:10 -02:00
renatofilho
178f81aa70 Added PySide attributes to specify current version, and Qt version.
Fixes bug: #454

Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
          Luciano Wolf <luciano.wolf@openbossa.org>
2010-11-12 14:25:27 -03:00
Marcelo Lira
2a4ee1675d Removed unnecessary find_package statements from pysidetest's CMakeLists.txt
Reviewed by Lauro Moura <lauro.neto@openbossa.org>
Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
2010-11-11 10:39:58 -03:00
Marcelo Lira
720c76980d Modified cmake files to make use of debug information provided by Shiboken.
In summation, PySide is compiled for debug if the libshiboken is
compiled for debug.
2010-10-26 13:49:07 -03:00
Marcelo Lira
7fab5c03a9 Signal objects redirect calls for homonymous methods. 2010-10-11 17:47:03 -03:00
Marcelo Lira
4b3b56acd7 Added a PySide derived test library.
The test library is intended to provide specific test cases in a way
that problems could be isolated easier than using the ones provided by
the Qt library. Cases commons to all Python bindings must go into the
Shiboken test libraries, the one added here is intended to test Qt
specifics (e.g. signals).

A Python unit test was added for the case when a method and a signal
have the same name.
2010-10-11 17:47:03 -03:00