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>
This commit is contained in:
Marcelo Lira 2011-01-06 18:45:44 -03:00 • committed by Hugo Parente Lima
commit ece91be2e6
3 changed files with 54 additions and 3 deletions

View file

@ -72,9 +72,10 @@ target_link_libraries(testbinding
add_dependencies(testbinding pyside QtCore QtGui libpyside pysidetest)
PYSIDE_TEST(homonymoussignalandmethod_test.py)
PYSIDE_TEST(decoratedslot_test.py)
PYSIDE_TEST(delegatecreateseditor_test.py)
PYSIDE_TEST(homonymoussignalandmethod_test.py)
PYSIDE_TEST(list_signal_test.py)
PYSIDE_TEST(modelview_test.py)
PYSIDE_TEST(version_test.py)
PYSIDE_TEST(list_signal_test.py)