aboutsummaryrefslogtreecommitdiffstats
path: root/tests/signals
Commit message (Collapse)AuthorAgeFilesLines
* Created unit test for bug #726.Renato Filho2012-03-081-0/+10
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Lauro Moura <lauro.neto@openbossa.org>
* Add unit test for bug 684.Hugo Parente Lima2012-03-081-0/+13
|
* Raise error when slot argument is unknown.Lauro Neto2012-03-081-0/+9
| | | | | | | | | | | | | | | | | | | Instead of accepting it silently and generating potential segfault and undefined behavior, raise TypeError when the type of an argument is unknown to PySide type system. An example of such erratic behavior is in declarations like: @Slot def foo(self): Slots without arguments must be explicitly declared this way: @Slot() def foo(self): Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Reviewer: Hugo Lima <hugo.lima@openbossa.org>
* Created unit test for bug #671.Renato Araujo Oliveira Filho2012-03-082-0/+63
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* Fix bug 651 - "Calling disconnect() with no arguments causes segfault"Hugo Parente Lima2012-03-082-0/+33
|
* Moved list_signal_test to pysidetest library.Renato Araujo Oliveira Filho2012-03-082-36/+0
| | | | | | | | 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>
* Fixed new style signal connection tests for the proper semantics.Marcelo Lira2012-03-081-1/+5
| | | | | | | | | One example to clarify: for the "destroyed(QObject* = 0)" signal, "obj.destroyed.connect(...)" connects to "destroyed()", and "obj.destroyed[QObject].connect(...)" connects to "destroyed(QObject*)". Reviewed by Lauro Moura <lauro.neto@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
* Remove releaseWrapper as Signal tp_deallocLauro Neto2010-10-262-0/+17
| | | | | | | | It was being called when the Signal was garbage collected, resulting in a segfault. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Reviewer: Renato Filho <renato.filho@openbossa.org>
* Removing deprecated and duplicated testLauro Neto2010-10-013-79/+0
| | | | Reviewer: Hugo Lima <hugo.lima@openbossa.org>
* Fixed test.renatofilho2010-09-161-2/+2
| | | | | | | The anonymous connections will be considered on QObject.receivers function. Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
* Update unit test for bug 312.renatofilho2010-09-161-0/+23
| | | | | | | Now the test verify if is possible connect more then 500 signals, if the signals was disconnected. Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
* Created unit test for bug #312.renatofilho2010-09-142-0/+24
| | | | | Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
* Now slots signatures in C++ use Qt notation.Renato Filho2010-08-261-1/+1
| | | | | | | | | | | Ex: Slot(str, int) # Python slot(QString, int) # C++ This allow the user create slots based on types, compatible with Qt Slots. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* Fixed slot singature parse function to keep compatibility with QSignal.Renato Filho2010-08-262-0/+36
| | | | | | | Fixes bug #319 Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* Fixed signal signature parser.Renato Filho2010-08-262-0/+43
| | | | | | | Fixes bug #311. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* Avoid cyclic dependency on test.Renato Filho2010-08-251-6/+15
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* Changed test to avoid erros on slow machines.Renato Filho2010-08-232-2/+2
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
* Added test case for signal signature received by QObject::connectNotify().Marcelo Lira2010-07-292-1/+43
| | | | | Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
* Modify multiple connections test to avoid use more then 50 slotsRenato Filho2010-07-082-24/+9
| | | | | | | supported by PySide. Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>, Luciano Wolf <luciano.wolf@openbossa.org>
* Fix bug#256 - "PySide does not support signals with containers."Hugo Parente Lima2010-06-292-0/+36
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Renato Araújo <renato.filho@openbossa.org>
* Create unit-test for signal with QObject.Renato Filho2010-06-171-3/+10
| | | | | Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>, Luciano Wolf <luciano.wolf@openbossa.org>
* chmod -x on some tests, because we need to follow a pattern.Hugo Parente Lima2010-06-1032-0/+0
|
* Re-add the possibility to run tests by module.Hugo Parente Lima2010-06-102-1/+1
|
* Remove wrapper for classes: QString, QStringRef, QLatin1String, ↵Hugo Parente Lima2010-06-102-6/+6
| | | | QStringMatcher, QChar and QLatin1Char.
* Created new unittest model.Renato Filho2010-06-0726-0/+33
| | | | | | | | Separete unittest for module. Only run unittest for compiled modules. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>, Luciano Wolf <luciano.wolf@openbossa.org>
* Revert "Fixed signal/slot class name based on PSEP 100."Hugo Parente Lima2010-05-317-23/+23
| | | | | | | | This reverts commit 361ac438c2b9e3c6c10c9ab2207a6464557b8a85. Conflicts: libpyside/qsignal.cpp
* Fixed signal/slot class name based on PSEP 100.Renato Filho2010-05-207-23/+23
| | | | | Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>, Luciano Wolf <luciano.wolf@openbossa.org>
* Adding new-style signal/slot tests.Luciano Wolf2010-05-176-0/+254
| | | | | | | Based on Marcelo Lira's source code. Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>, Luciano Wolf <luciano.wolf@openbossa.org>
* Implemented signal to signal connection.Renato Filho2010-05-171-0/+10
| | | | | Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>, Luciano Wolf <luciano.wolf@openbossa.org>
* Implemented support to connection type.Renato Filho2010-05-171-0/+8
| | | | | Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>, Luciano Wolf <luciano.wolf@openbossa.org>
* Removed init[slot,signal] from public api.Renato Filho2010-05-171-6/+8
| | | | | | | Use PyObject_dir to discovery signals methods. (this is very slow) Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>, Luciano Wolf <luciano.wolf@openbossa.org>
* Fixed memory leak on signal allocator.Renato Filho2010-05-171-0/+8
| | | | | Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>, Luciano Wolf <luciano.wolf@openbossa.org>
* Implemente sequence operator on signal class.Renato Filho2010-05-171-0/+10
| | | | | Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>, Luciano Wolf <luciano.wolf@openbossa.org>
* Implemented signal name discovery if not setted on constructor.Renato Filho2010-05-171-3/+8
| | | | | Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>, Luciano Wolf <luciano.wolf@openbossa.org>
* Implemented support to modify slot return type.Renato Filho2010-05-172-3/+53
| | | | | | | | Included method type in DynamicQMetaObject metadata. Moved Signal/Slot objet to libpyside. Create unittest to signal class. Implemented disconnection function. Fixed emit method on signal object
* Use new decorators api on autoconnect test.Renato Filho2010-05-171-0/+1
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>, Luciano Wolf <luciano.wolf@openbossa.org>
* Created unitest to slot decoration.Renato Filho2010-05-171-0/+49
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>, Luciano Wolf <luciano.wolf@openbossa.org>
* Created test to static metaobject.Renato Filho2010-05-101-0/+63
| | | | | Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>, Luciano Wolf <luciano.wolf@openbossa.org>
* unittest for autoconection signal/slot.Renato Filho2010-05-071-0/+30
| | | | | Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>, Luciano Wolf <luciano.wolf@openbossa.org
* Fixed bug with refcount on PyObject args during signal/slot emission.Renato Filho2010-04-161-5/+51
| | | | | Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Lauro Moura <lauro.neto@openbossa.org>
* Fix bug#197, among some reference leaks.Hugo Parente Lima2010-04-121-1/+6
| | | | | Reviewer: Renato Araújo <renato.filho@openbossa.org> Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
* Fixed signal emission with pythonic signalture.Renato Filho2010-04-121-0/+16
| | | | | | | Created unittest. Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>, Luciano Wolf <luciano.wolf@openbossa.org>
* Fix bug#210, "Can't connect generic callable objects as a slot".Hugo Parente Lima2010-04-081-0/+15
| | | | | Reviewer: Bruno Araújo <bruno.araujo@openbossa.org> Reviewer: Lauro Moura <lauro.neto@openbossa.org>
* Replace "requires" class decorator with a simple if (for Python 2.5 ↵Anderson Lizardo2010-03-025-188/+184
| | | | | | | compatibility) Reviewed-by: Lauro Moura <lauro.neto@openbossa.org> Reviewed-by: Bruno Araujo <bruno.araujo@openbossa.org>
* Fixed memory leak on callbacks used on signal connection.Renato Filho2010-02-233-4/+16
| | | | | Now using the 'destroyed()' signal the reference is cleaned after source object destroyed.
* Small fix on qpushbutton.clicked emissionLauro Neto2010-02-091-1/+1
|
* Adding support for connect(obj, signal, slot)Lauro Neto2010-02-091-0/+37
| | | | | window.connect(button, SIGNAL('clicked()'), SLOT('close()') should connect button.clicked to window.close
* Remove usage of QThread in signal emission testLauro Neto2010-01-041-12/+5
| | | | Reviewed by Anderson Lizardo (anderson.lizardo@openbossa.org)
* Split signal tests into gui and core testsLauro Neto2010-01-047-168/+224
| | | | | Can't use a QApplication and a QCoreApplication in the same process
* Fix test of QObject::senderHugo Lima2009-12-301-1/+1
|