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:
parent
42e52dec9c
commit
ece91be2e6
3 changed files with 54 additions and 3 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue